如题配置文件加上
#设定静态文件路径,js,css等。static为你放置静态资源的文件夹名称,也可以叫别的名字.properties加上 spring.mvc.static-path-pattern=/static/**.yml加上
spring: mvc: static-path-pattern: /static/**