具体看图: 1、确认自己的springboot 的版本号 ,提供解决sprinboot 2.x 以上的版本 2、解决方案:拦截路径是:asserts 不是static下的 3、示例图如下: springboot 2.x 相关文章: