Created
September 13, 2017 19:50
-
-
Save keysecf/a054d6c8dc0273f0540123b7dd335ddb to your computer and use it in GitHub Desktop.
AppWebConfiguration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.casadocodigo.loja.conf; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
import org.springframework.web.servlet.view.InternalResourceViewResolver; | |
import br.com.casadocodigo.loja.controllers.HomeController; | |
import br.com.casadocodigo.loja.daos.ProdutoDAO; | |
@EnableWebMvc | |
@ComponentScan(basePackageClasses={HomeController.class, ProdutoDAO.class}) | |
public class AppWebConfiguration { | |
@Bean | |
public InternalResourceViewResolver internalResourceViewResolver(){ | |
InternalResourceViewResolver resolver = new InternalResourceViewResolver(); | |
resolver.setPrefix("/WEB-INF/views/"); | |
resolver.setSuffix(".jsp"); | |
return resolver; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment