swagger2和对应的springboot版本问题
springboot 集成Swagger2报错
访问浏览器出现如下错误:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Mar 30 16:00:20 CST 2022
There was an unexpected error (type=Not Found, status=404).
控制台出现如下错误:
Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
可能是springboot版本太高,对于swagger2.9.2,对应的springboot版本最好在2.5及以下。
 
                    
                 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号