今天腾讯云给我爆出了5个错,大致意思就是某些组件版本太低已经出现了漏洞,需要更新:

1、Apache Shiro的漏洞需要升级到版本1.10.1及以上解决
2、FastJson漏洞需要更新到1.2.83及以上版本解决
3、Tomcat漏洞需要更新到9.0.68及以上版本解决,由于项目使用jar包启动,故升级SpringBoot版本2.6.14
然后再次启动时控制台报错:Failed to start bean ‘documentationPluginsBootstrapper’

主要原因是:SpringBoot 升级到 2.6.0版本之后,与swagger版本出现了不兼容情况。
解决方法:在yml文件新加入配置如下
# Spring配置
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
由此修复完成。

