Switched from the manual implemented authentication-layer to Spring Security
[examples/facebook-app] / src / main / java / de / juplo / yourshouter / WebMvcConfig.java
1 package de.juplo.yourshouter;
2
3
4
5
6 import org.springframework.context.annotation.Configuration;
7 import org.springframework.web.servlet.config.annotation.EnableWebMvc;
8 import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
9 import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
10
11
12 /**
13  * Spring MVC Configuration.
14  *
15  * @author Kai Moritz
16  */
17 @Configuration
18 @EnableWebMvc
19 public class WebMvcConfig extends WebMvcConfigurerAdapter
20 {
21   /**
22    * {@inheritDoc}
23    */
24   @Override
25   public void addViewControllers(ViewControllerRegistry registry)
26   {
27     // Configure the view /thymeleaf/signin.html for the path /signin.html
28     registry.addViewController("/signin.html");
29   }
30 }