Java Code Examples for org.springframework.web.servlet.config.annotation.ViewControllerRegistry#addViewController()
The following examples show how to use
org.springframework.web.servlet.config.annotation.ViewControllerRegistry#addViewController() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UiWebConfig.java From oauth2lab with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/oauthTemp"); registry.addViewController("/index"); }
Example 2
Source File: WebConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/index"); registry.addViewController("/login"); }
Example 3
Source File: UiWebConfig.java From spring-security-oauth with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/index"); registry.addViewController("/login"); registry.addViewController("/login_remember"); }
Example 4
Source File: MultipleLoginMvcConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/anonymous.html"); registry.addViewController("/login.html"); registry.addViewController("/homepage.html"); registry.addViewController("/console.html"); }
Example 5
Source File: MvcConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/anonymous.html"); registry.addViewController("/login.html"); registry.addViewController("/homepage.html"); registry.addViewController("/sessionExpired.html"); registry.addViewController("/invalidSession.html"); registry.addViewController("/console.html"); }
Example 6
Source File: MvcConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); registry.addViewController("/anonymous.html"); registry.addViewController("/login.html"); registry.addViewController("/homepage.html"); registry.addViewController("/admin/adminpage.html"); registry.addViewController("/accessDenied"); }
Example 7
Source File: MvcConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/home"); registry.addViewController("/protectedbynothing").setViewName("rolesauthorities/protectedbynothing"); registry.addViewController("/protectedbyrole").setViewName("rolesauthorities/protectedbyrole"); registry.addViewController("/protectedbyauthority").setViewName("rolesauthorities/protectedbyauthority"); registry.addViewController("/login").setViewName("rolesauthorities/login"); registry.addViewController("/home").setViewName("rolesauthorities/home"); registry.addViewController("/logout"); }
Example 8
Source File: MvcConfig.java From tutorials with MIT License | 5 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/anonymous.html"); registry.addViewController("/login.html"); registry.addViewController("/homepage.html"); registry.addViewController("/console.html"); registry.addViewController("/csrfHome.html"); }
Example 9
Source File: WebConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/csrfAttacker.html"); }
Example 10
Source File: WebConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/homepage.html"); }
Example 11
Source File: ClientWebConfigJava.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/sample.html"); }
Example 12
Source File: MvcConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); registry.addViewController("/homepage.html"); }
Example 13
Source File: MvcConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/index"); }
Example 14
Source File: MvcConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/login.html"); registry.addViewController("/home.html"); }
Example 15
Source File: MvcConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); registry.addViewController("/sample.html"); }
Example 16
Source File: WebConfiguration.java From spring-boot-demo with MIT License | 4 votes |
@Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/*"); }
Example 17
Source File: UiWebConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/index"); registry.addViewController("/login"); }
Example 18
Source File: MvcConfig.java From tutorials with MIT License | 4 votes |
@Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("securedPage"); registry.addViewController("loginFailure"); }
Example 19
Source File: UiWebConfig.java From spring-security-oauth with MIT License | 4 votes |
@Override public void addViewControllers(final ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/index"); registry.addViewController("/oauthTemp"); registry.addViewController("/index"); }
Example 20
Source File: WebConfig.java From spring-in-action-5-samples with Apache License 2.0 | 4 votes |
@Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/").setViewName("home"); registry.addViewController("/abc").setViewName("home"); registry.addViewController("/login"); }