突然出现static下面的资源,如果有深度文件夹存放,就访问不到。
//访问不到
http://localhost:8080/js/boat.png
//可以访问到
http://localhost:8080/boat.png
这个问题,关掉idea重启就好了。或者重新编译下,看看静态资源是否到target文件夹里了。
突然出现static下面的资源,如果有深度文件夹存放,就访问不到。
//访问不到
http://localhost:8080/js/boat.png
//可以访问到
http://localhost:8080/boat.png
这个问题,关掉idea重启就好了。或者重新编译下,看看静态资源是否到target文件夹里了。