Commit be477e48ffc11fca60b5dd589197398912bc5a12

Authored by zhangdaiscott
1 parent 1588db3c

修复 菜单管理-编辑-默认跳转地址 不显示内容的bug

SpringBoot 请求参数包含 [] 特殊符号 返回400状态
ant-design-vue-jeecg/src/views/system/modules/PermissionModal.vue
@@ -294,7 +294,7 @@ @@ -294,7 +294,7 @@
294 294
295 this.visible = true; 295 this.visible = true;
296 this.loadTree(); 296 this.loadTree();
297 - let fieldsVal = pick(this.model,'name','perms','permsType','component','url','sortNo','menuType','status'); 297 + let fieldsVal = pick(this.model,'name','perms','permsType','component','redirect','url','sortNo','menuType','status');
298 this.$nextTick(() => { 298 this.$nextTick(() => {
299 this.form.setFieldsValue(fieldsVal) 299 this.form.setFieldsValue(fieldsVal)
300 }); 300 });
@@ -427,4 +427,4 @@ @@ -427,4 +427,4 @@
427 427
428 <style scoped> 428 <style scoped>
429 429
430 -</style>  
431 \ No newline at end of file 430 \ No newline at end of file
  431 +</style>
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java
@@ -2,11 +2,13 @@ package org.jeecg; @@ -2,11 +2,13 @@ package org.jeecg;
2 2
3 import lombok.extern.slf4j.Slf4j; 3 import lombok.extern.slf4j.Slf4j;
4 import org.apache.catalina.Context; 4 import org.apache.catalina.Context;
  5 +import org.apache.catalina.connector.Connector;
5 import org.apache.tomcat.util.scan.StandardJarScanner; 6 import org.apache.tomcat.util.scan.StandardJarScanner;
6 import org.jeecg.common.util.oConvertUtils; 7 import org.jeecg.common.util.oConvertUtils;
7 import org.springframework.boot.SpringApplication; 8 import org.springframework.boot.SpringApplication;
8 import org.springframework.boot.autoconfigure.SpringBootApplication; 9 import org.springframework.boot.autoconfigure.SpringBootApplication;
9 import org.springframework.boot.builder.SpringApplicationBuilder; 10 import org.springframework.boot.builder.SpringApplicationBuilder;
  11 +import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
10 import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; 12 import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
11 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; 13 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
12 import org.springframework.context.ConfigurableApplicationContext; 14 import org.springframework.context.ConfigurableApplicationContext;
@@ -48,11 +50,22 @@ public class JeecgSystemApplication extends SpringBootServletInitializer { @@ -48,11 +50,22 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
48 */ 50 */
49 @Bean 51 @Bean
50 public TomcatServletWebServerFactory tomcatFactory() { 52 public TomcatServletWebServerFactory tomcatFactory() {
51 - return new TomcatServletWebServerFactory() { 53 +
  54 + TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(){
52 @Override 55 @Override
53 protected void postProcessContext(Context context) { 56 protected void postProcessContext(Context context) {
54 ((StandardJarScanner) context.getJarScanner()).setScanManifest(false); 57 ((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
55 } 58 }
56 }; 59 };
  60 +
  61 + factory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
  62 + @Override
  63 + public void customize(Connector connector) {
  64 + connector.setProperty("relaxedPathChars", "\"<>[\\]^`{|}");
  65 + connector.setProperty("relaxedQueryChars", "\"<>[\\]^`{|}");
  66 + }
  67 + });
  68 +
  69 + return factory;
57 } 70 }
58 } 71 }
59 \ No newline at end of file 72 \ No newline at end of file