集成分布式session

This commit is contained in:
小柒2012
2018-05-17 18:16:37 +08:00
parent 712936e322
commit 640294981b
4 changed files with 47 additions and 23 deletions

View File

@@ -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 );
}