Commit a728c99f authored by 刘帅阳's avatar 刘帅阳

修改

parent f51eea70
...@@ -92,7 +92,7 @@ public class Global { ...@@ -92,7 +92,7 @@ public class Global {
@Value("${global.path.pdf_location}") @Value("${global.path.pdf_location}")
private String PDF_LOCATION; private String PDF_LOCATION;
// /*切割pdf路径*/ // /*切割pdf路径*/
// @Value("${global.path.cut_pdf_location}") // @Value("${global.path.cut_pdf_location}")
// private String CUT_PDF_LOCATION; // private String CUT_PDF_LOCATION;
// //
...@@ -120,7 +120,7 @@ public class Global { ...@@ -120,7 +120,7 @@ public class Global {
@Value("${global.path.images_location}") @Value("${global.path.images_location}")
private String IMAGES_LOCATION; private String IMAGES_LOCATION;
// /*课程默认图片路径*/ // /*课程默认图片路径*/
// @Value("${global.default_location.course}") // @Value("${global.default_location.course}")
// private String DEFAULT_COURSE_LOCATION; // private String DEFAULT_COURSE_LOCATION;
// //
...@@ -229,6 +229,13 @@ public class Global { ...@@ -229,6 +229,13 @@ public class Global {
@Value("${spring.redis.timeout}") @Value("${spring.redis.timeout}")
private Integer REDIS_TIMEOUT; private Integer REDIS_TIMEOUT;
/**
*
*/
//不允许上传的文件格式
@Value("${cy.model.security.unsupportedFileFormat}")
private String unsupportedFileFormat;
// @Value("${global.path.xml_location}") // @Value("${global.path.xml_location}")
// private String XML_LOCATION; // private String XML_LOCATION;
} }
...@@ -59,7 +59,7 @@ cy: ...@@ -59,7 +59,7 @@ cy:
acAllowOrigin: '*' acAllowOrigin: '*'
acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT' acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT'
acAllowHeaders: '*' acAllowHeaders: '*'
unsupportedFileFormat: "" unsupportedFileFormat: ".exe,.php,.asp,.jsp,.aspx"
permit-all: permit-all:
permitUnStatic: permitUnStatic:
- "/static/**" - "/static/**"
......
...@@ -54,7 +54,7 @@ cy: ...@@ -54,7 +54,7 @@ cy:
acAllowOrigin: '*' acAllowOrigin: '*'
acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT' acAllowMethods: 'POST, GET, OPTIONS, DELETE,PUT'
acAllowHeaders: '*' acAllowHeaders: '*'
unsupportedFileFormat: "" unsupportedFileFormat: ".exe,.php,.asp,.jsp,.aspx"
permit-all: permit-all:
permitUnStatic: permitUnStatic:
- "/static/**" - "/static/**"
...@@ -69,7 +69,6 @@ cy: ...@@ -69,7 +69,6 @@ cy:
- "/nlttest/add/**" - "/nlttest/add/**"
- "/pc/sysuser/checkPhoneCode" - "/pc/sysuser/checkPhoneCode"
- "/pc/sysuser/resetPassword" - "/pc/sysuser/resetPassword"
- "/**/**"
- "/captcha/**" - "/captcha/**"
#- "/cros/**" #- "/cros/**"
permitStatic: [ "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.js", "/**/*.css" ] permitStatic: [ "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.js", "/**/*.css" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment