1、配置优化

Former-commit-id: 348a2c11019d6dec0ec5b3e76d51c36a8f27ceb0
master
王兵 5 years ago
parent 554ca6808f
commit afa8e6023a

@ -67,9 +67,9 @@ public class GlobalController implements ErrorController {
@Value("${r'${server.servlet.context-path}'}")
private String context;
@Value("${r'${web.home.page}'}")
@Value("${r'${web.url.index}'}")
private String homePage;
@Value("${r'${web.login.page}'}")
@Value("${r'${web.url.login}'}")
private String loginPage;
@Autowired
private FreeMarkerViewResolver viewResolver;

@ -40,7 +40,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
private String[] excluded;
@Value("${r'${spring.mvc.static-path-pattern}'}")
private String[] staticPath;
@Value("${r'${web.login.page}'}")
@Value("${r'${web.url.login}'}")
private String loginPage;
@Override

@ -19,7 +19,7 @@ import java.util.List;
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
@Value("${r'${web.home.page}'}")
@Value("${r'${web.url.index}'}")
private String homePage;
@Value("${r'${spring.mvc.static-path-pattern}'}")
private String[] staticPath;

@ -122,9 +122,9 @@ server.tomcat.max-http-post-size=-1
# 自定义配置
# 根路径默认页,'/'跳转至该页
web.home.page=/index.htm
web.url.index=/index.htm
# 登录页
web.login.page=/login.htm
web.url.login=/login.htm
# 拦截验证
web.url.auth.included=/,/**/*.htm,/ajax/**,/api/**
# 直接放行

@ -122,9 +122,9 @@ server.tomcat.max-http-post-size=-1
# 自定义配置
# 根路径默认页,'/'跳转至该页
web.home.page=/index.htm
web.url.index=/index.htm
# 登录页
web.login.page=/login.htm
web.url.login=/login.htm
# 拦截验证
web.url.auth.included=/,/**/*.htm,/ajax/**,/api/**
# 直接放行

@ -122,9 +122,9 @@ server.tomcat.max-http-post-size=-1
# 自定义配置
# 根路径默认页,'/'跳转至该页
web.home.page=/index.htm
web.url.index=/index.htm
# 登录页
web.login.page=/login.htm
web.url.login=/login.htm
# 拦截验证
web.url.auth.included=/,/**/*.htm,/ajax/**,/api/**
# 直接放行

Loading…
Cancel
Save

Powered by TurnKey Linux.