404一般都是页面路径问题
网上写的Swagger2查看路径一般都是http://localhost:8080/swagger-ui.html#/
实际 Swagger2 的路径与端口有关,还和 context-path 即项目路径有关。
例:
server:
port: 8088
context-path: /dev
Swagger2的查看的实际地址应为 http://localhost:8088/dev/swagger-ui.html#/
404一般都是页面路径问题
网上写的Swagger2查看路径一般都是http://localhost:8080/swagger-ui.html#/
实际 Swagger2 的路径与端口有关,还和 context-path 即项目路径有关。
例:
server:
port: 8088
context-path: /dev
Swagger2的查看的实际地址应为 http://localhost:8088/dev/swagger-ui.html#/