mirror of https://github.com/jeecgboot/jeecg-boot
【swagger问题】不带/doc.html访问后台项目swaager,接口测试实际请求后台接口地址少了项目前缀
parent
7b80ae3e68
commit
118775cf79
|
@ -88,7 +88,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void addViewControllers(ViewControllerRegistry registry) {
|
public void addViewControllers(ViewControllerRegistry registry) {
|
||||||
registry.addViewController("/").setViewName("doc.html");
|
registry.addViewController("/").setViewName("redirect:/doc.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
|
||||||
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
|
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
|
||||||
log.info("\n----------------------------------------------------------\n\t" +
|
log.info("\n----------------------------------------------------------\n\t" +
|
||||||
"Application Jeecg-Boot is running! Access URLs:\n\t" +
|
"Application Jeecg-Boot is running! Access URLs:\n\t" +
|
||||||
"Local: \t\thttp://localhost:" + port + path + "/doc.html\n\t" +
|
"Local: \t\thttp://localhost:" + port + path + "\n\t" +
|
||||||
"External: \thttp://" + ip + ":" + port + path + "/doc.html\n\t" +
|
"External: \thttp://" + ip + ":" + port + path + "/doc.html\n\t" +
|
||||||
"Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
|
"Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
|
||||||
"----------------------------------------------------------");
|
"----------------------------------------------------------");
|
||||||
|
|
Loading…
Reference in New Issue