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及以下。

posted @ 2022-03-30 17:30  zhangshuai2496689659  阅读(545)  评论(0)    收藏  举报