1) I have configured application using pure java configuration. Everything seems to be working correctly except css/js/images. The application is available on Github at
https://github.com/rajendersaini/cabms/
Just want to point out the configuration
AppConfig - spring mvc config - register resources using
registry.addResourceHandler("/resources/**")
.addResourceLocations("/WEB-INF/resources/").setCachePeriod(31556926);
and in SecurityConfig -
http.authorizeRequests()
.antMatchers(LoginController.AUTHLOGIN,
ResourceConfig.RESOURCE_PATH_MATCHER).permitAll()
.anyRequest().authenticated().and().formLogin()
.loginPage(LoginController.AUTHLOGIN);
Can you please help fixing this issue?