Estou tentando configurar a anotação do <mvc:resources mapping ="/resources/** location="/resources/"/> sem xml, conforme o código abaixo, para adicionar minhas páginas js/css dentro, mas não estou conseguindo.
public class AppWebConfiguration {
@Bean
public InternalResourceViewResolver internalResourceViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setPrefix("/WEB-INF/views/");
resolver.setSuffix(".jsp");
// <mvc:resources mapping ="/resources/** location="/resources/"/>
return resolver;
}
}