mirror of
https://gitee.com/52itstyle/spring-boot-seckill.git
synced 2026-05-14 03:12:41 +00:00
集成分布式session
This commit is contained in:
@@ -12,7 +12,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
||||
public class MyAdapter extends WebMvcConfigurerAdapter{
|
||||
@Override
|
||||
public void addViewControllers( ViewControllerRegistry registry ) {
|
||||
registry.addViewController( "/" ).setViewName( "forward:/login.shtml" );
|
||||
registry.addViewController( "/" ).setViewName( "forward:/index.shtml" );
|
||||
registry.setOrder( Ordered.HIGHEST_PRECEDENCE );
|
||||
super.addViewControllers( registry );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user