I am trying to update spring mvc project to use new annotations and get rid of my xml. I used to upload my static resources to my web.xml using the line:
<mvc:resources mapping="/resources/**" location="/resources/" />
Now I use the annotation WebApplicationInitializer and @EnableWebMvc to start my service without any xml files, but I cannot figure out how to load my resources.
Is there an annotation or a new configuration to return these resources without using xml?
java spring spring-mvc configuration
Dan W Feb 13 '13 at 19:45 2013-02-13 19:45
source share