修改访问不了静态页面问题

This commit is contained in:
暮光:城中城
2019-01-24 19:11:39 +08:00
committed by zhanghongli
parent 7703590938
commit 8c58e27196
43 changed files with 126 additions and 142 deletions

View File

@@ -36,7 +36,7 @@ public class Application extends SpringBootServletInitializer {
String urlCtx = hostAddress + ":" + serverPort + "/" + contextPath;
logger.info("\n----------------------------------------------------------\n\t" +
"\t\t地址列表\n\t" +
"管理地址http://{}statics/manage/home.html\n" +
"管理地址http://{}static/manage/home.html\n" +
"----------------------------------------------------------",
urlCtx
);

View File

@@ -39,12 +39,12 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
*/
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers("/statics/lib/**", "/css/**", "/js/**", "/img/**");
web.ignoring().antMatchers("/static/lib/**", "/css/**", "/js/**", "/img/**");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
String loginPage = "/statics/manage/login.html";
String loginPage = "/static/manage/login.html";
http.authorizeRequests().antMatchers("/login/**").permitAll()//为了测试其他功能,设置“ /** ”允许所有请求
.antMatchers("/document.html", "/doc.html").hasAuthority("DOC_ALL")

View File

@@ -1,30 +1,14 @@
spring:
application:
name: zyplayer-doc-manage
velocity:
layout-url: common/default.vm
cache: false
suffix: .vm
expose-spring-macro-helpers: true
date-tool-attribute: dateTool
number-tool-attribute: numberTool
contentType: text/html;charset=UTF-8
resource-loader-path: classpath:/vm/
default-content-type: text/html
ignore-accept-header: true
charset: UTF-8
properties:
input:
encoding: UTF-8
output:
encoding: UTF-8
# mvc:
# static-path-pattern: /**
server:
port: 8082
servlet:
context-path: /zyplayer-doc-manage
zyplayer:
doc:
# zyplayer_doc_manage管理端的数据库配置

View File

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 290 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 290 KiB