springboot项目整合swagger2出现的问题

swagger需要开放以下uri:
/swagger-ui.html
/swagger-resources
/webjars
/csrf
/v2

添加swagger后项目报错 Failed to start bean 'documentationPluginsBootstrapper'

因为swagger依赖google的guava,而当前项目的guava版本与之不匹配,将当前项目的guava版本升到swagger子依赖的guaba版本相同即可解决

原文:https://blog.csdn.net/xiaofanren1111/article/details/83011454

原文地址:https://www.cnblogs.com/new-life/p/12054365.html