Heim  >  Fragen und Antworten  >  Hauptteil

java-ee - JAVA的注解@Api和@ApiOperation的作用是什么,怎么跳转页面的


如图,在springMVC中,@requestmapping是起到了接受view层的url,再根据requestmapping的value来确认的那个方法的作用,那么@api和@ApiOperation的作用是什么呢?
return中的ok().headers是网页的url路径吗

迷茫迷茫2743 Tage vor1233

Antworte allen(1)Ich werde antworten

  • 怪我咯

    怪我咯2017-04-18 10:56:15

    @Api@ApiOperation不是Spring的东西,是swagger的东西,参考链接看这里。

    Antwort
    0
  • StornierenAntwort