parent
6f0b83aaab
commit
519a9c7e45
8 changed files with 49 additions and 7 deletions
@ -1,3 +1,4 @@ |
|||||||
target/ |
target/ |
||||||
|
.settings/ |
||||||
*~ |
*~ |
||||||
|
|
||||||
|
@ -0,0 +1,17 @@ |
|||||||
|
package com.mousetech.gourmetj; |
||||||
|
|
||||||
|
import org.springframework.context.annotation.Configuration; |
||||||
|
import org.springframework.core.Ordered; |
||||||
|
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; |
||||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
||||||
|
|
||||||
|
@Configuration |
||||||
|
public class WelcomePageRedirect implements WebMvcConfigurer { |
||||||
|
|
||||||
|
@Override |
||||||
|
public void addViewControllers(ViewControllerRegistry registry) { |
||||||
|
registry.addViewController("/") |
||||||
|
.setViewName("forward:/index.xhtml"); |
||||||
|
registry.setOrder(Ordered.HIGHEST_PRECEDENCE); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue