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 294  
295 295 this.visible = true;
296 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 298 this.$nextTick(() => {
299 299 this.form.setFieldsValue(fieldsVal)
300 300 });
... ... @@ -427,4 +427,4 @@
427 427  
428 428 <style scoped>
429 429  
430   -</style>
431 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 2  
3 3 import lombok.extern.slf4j.Slf4j;
4 4 import org.apache.catalina.Context;
  5 +import org.apache.catalina.connector.Connector;
5 6 import org.apache.tomcat.util.scan.StandardJarScanner;
6 7 import org.jeecg.common.util.oConvertUtils;
7 8 import org.springframework.boot.SpringApplication;
8 9 import org.springframework.boot.autoconfigure.SpringBootApplication;
9 10 import org.springframework.boot.builder.SpringApplicationBuilder;
  11 +import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
10 12 import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
11 13 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
12 14 import org.springframework.context.ConfigurableApplicationContext;
... ... @@ -48,11 +50,22 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
48 50 */
49 51 @Bean
50 52 public TomcatServletWebServerFactory tomcatFactory() {
51   - return new TomcatServletWebServerFactory() {
  53 +
  54 + TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(){
52 55 @Override
53 56 protected void postProcessContext(Context context) {
54 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 72 \ No newline at end of file
... ...