SpringBoot 静态资源访问与Swagger-ui.html访问冲突 问题描述: SpringBoot升级到2.x后,无法直接通过如下网址直接访问位于resources/static/下的1.jpg图片 http://localhost:8080/1.jpg swagger-ui.html可以正常访问。 http://localhost:8080/swagger-ui.html 为了访问静态资源文件,在application.properties文件下添加配置