
http://主机号 本地默认 localhost:服务器端口号 默认8080/项目名 默认无/swagger-ui.html
http:// localhost:8080/项目名 默认无/swagger-ui.html
主要检查是否存在springfox-swagger-ui这个包
国内maven仓库 传送门.
security拦截的话设置放行,不设置也行只要输入正确的security接管的登录界面的用户名和密码即可访问
// An highlighted block
.antMatchers("/v2/api-docs", "/swagger-resources/configuration/ui",
"/swagger-resources", "/swagger-resources/configuration/security",
"/swagger-ui.html", "/webjars/**").permitAll()
拦截器设置问题
WebMvcConfigurationSupport和WebMvcConfigurer的区别? 传送门
贴心小棉袄