The resource is under src/main/resources/static/css or src/main/resources/static/js, I\'m using spring boot, and the class of security is:
@Configuration @En
Add following
@Override public void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/resources/**").anyRequest(); }