From be477e48ffc11fca60b5dd589197398912bc5a12 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 24 Dec 2020 22:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=20=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E7=BC=96=E8=BE=91-=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=9C=B0=E5=9D=80=20=20=20=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=86=85=E5=AE=B9=E7=9A=84bug=20SpringBoot=20?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E5=8C=85=E5=90=AB=20[]=20?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=E3=80=80=E8=BF=94=E5=9B=9E?= =?UTF-8?q?400=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/modules/PermissionModal.vue | 4 ++-- .../java/org/jeecg/JeecgSystemApplication.java | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/system/modules/PermissionModal.vue b/ant-design-vue-jeecg/src/views/system/modules/PermissionModal.vue index a6178d03..7f73aa0f 100644 --- a/ant-design-vue-jeecg/src/views/system/modules/PermissionModal.vue +++ b/ant-design-vue-jeecg/src/views/system/modules/PermissionModal.vue @@ -294,7 +294,7 @@ this.visible = true; this.loadTree(); - let fieldsVal = pick(this.model,'name','perms','permsType','component','url','sortNo','menuType','status'); + let fieldsVal = pick(this.model,'name','perms','permsType','component','redirect','url','sortNo','menuType','status'); this.$nextTick(() => { this.form.setFieldsValue(fieldsVal) }); @@ -427,4 +427,4 @@ \ No newline at end of file + diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java index 270d4cde..d8832519 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java @@ -2,11 +2,13 @@ package org.jeecg; import lombok.extern.slf4j.Slf4j; import org.apache.catalina.Context; +import org.apache.catalina.connector.Connector; import org.apache.tomcat.util.scan.StandardJarScanner; import org.jeecg.common.util.oConvertUtils; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer; import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.ConfigurableApplicationContext; @@ -48,11 +50,22 @@ public class JeecgSystemApplication extends SpringBootServletInitializer { */ @Bean public TomcatServletWebServerFactory tomcatFactory() { - return new TomcatServletWebServerFactory() { + + TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(){ @Override protected void postProcessContext(Context context) { ((StandardJarScanner) context.getJarScanner()).setScanManifest(false); } }; + + factory.addConnectorCustomizers(new TomcatConnectorCustomizer() { + @Override + public void customize(Connector connector) { + connector.setProperty("relaxedPathChars", "\"<>[\\]^`{|}"); + connector.setProperty("relaxedQueryChars", "\"<>[\\]^`{|}"); + } + }); + + return factory; } } \ No newline at end of file