我使用的是Spring Boot 1.3.3和swagger-springmvc:1.0.2。我将应用程序的基本路径设置为" /"。而Swagger正在加载
http://localhost:9000/swagger/index.html
我需要改变它,但保持我的应用程序的根目录为" /"。我需要编写一条规则,例如:
这可能吗?
答案 0 :(得分:0)
您可以使用URI模板模式(http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-uri-templates),甚至可以使用正则表达式,具体取决于您需要的具体方式。