今天搞Springboot工程的时候发现访问不了,报错如下
浏览器端访问又报错如下:This application has no explicit mapping for /error
把Swagger的配置类改成实现WebMvcConfigurer就可以了
原先的类是继承方式的,如下:
另外附上我的pom.xml
然后就可以访问了
访问地址:http://localhost:8089/swagger-ui.html
今天搞Springboot工程的时候发现访问不了,报错如下
浏览器端访问又报错如下:This application has no explicit mapping for /error
把Swagger的配置类改成实现WebMvcConfigurer就可以了
原先的类是继承方式的,如下:
另外附上我的pom.xml
然后就可以访问了
访问地址:http://localhost:8089/swagger-ui.html
相关文章: