新增导航栏天气显示

This commit is contained in:
郑杰
2018-10-25 09:30:15 +08:00
parent 378fd7b601
commit 02525413bd
4 changed files with 48 additions and 9 deletions
@@ -13,11 +13,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class ConfigurerAdapter implements WebMvcConfigurer {
@Bean
LockInterceptor lockInterceptor(){
return new LockInterceptor();
}
/**
* 以前要访问一个页面需要先创建个Controller控制类,再写方法跳转到页面
* 在这里配置后就不需要那么麻烦了,直接访问http://localhost/login.html就跳转到login页面了