靜態資源:
1,默認情況下,Springboot會從classpath下的/static、/public、/resources、/META-INF/resources下加載靜態資源;
2,可以通過修改spring.resources.staticLocations來修改靜態資源加載地址;
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/mydir
3,因爲應用是打成jar包,所以之前的src/main/webapp不會加載;