Why this Spring application with java-based configuration don't work properly
问题 I started recently a project with the Spring framework with the ojective to develop it without none XML config file, only Java code. In this current moment, I add the follow files to my project: WebAppConfig.java @EnableWebMvc @ComponentScan(value="org.webapp") @Configuration public class WebAppConfig extends WebMvcConfigurerAdapter { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/css/**").addResourceLocations("/css/")