X-Git-Url: http://juplo.de/gitweb/?p=examples%2Ffacebook-app;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fyourshouter%2FWebMvcConfig.java;fp=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fyourshouter%2FWebMvcConfig.java;h=6676ae61f9ffe89e62ed9393751c139da388b9dd;hp=e5c6d6f5bb7a3ea045bbf74d87c72ec20516f8b4;hb=a1ad44fc308e479f9a005aa2d87cb604d6eb0e7d;hpb=02f599692669d48f9865764fda994ad61d203ffb diff --git a/src/main/java/de/juplo/yourshouter/WebMvcConfig.java b/src/main/java/de/juplo/yourshouter/WebMvcConfig.java index e5c6d6f..6676ae6 100644 --- a/src/main/java/de/juplo/yourshouter/WebMvcConfig.java +++ b/src/main/java/de/juplo/yourshouter/WebMvcConfig.java @@ -8,6 +8,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.social.connect.UsersConnectionRepository; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; @@ -37,4 +38,14 @@ public class WebMvcConfig extends WebMvcConfigurerAdapter { registry.addInterceptor(new UserCookieInterceptor(usersConnectionRepository)); } + + /** + * {@inheritDoc} + */ + @Override + public void addViewControllers(ViewControllerRegistry registry) + { + // Configure the view /thymeleaf/signin.html for the path /signin.html + registry.addViewController("/signin.html"); + } }