package me.zhengjie;

import me.zhengjie.utils.SpringContextHolder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Zheng Jie
 * @date 2018/11/15 9:20:19
 */
@EnableAsync
@SpringBootApplication
@EnableTransactionManagement
public class AppRun {

    public static void main(String[] args) {
        SpringApplication.run(AppRun.class, args);
    }

    @Bean
    public SpringContextHolder springContextHolder() {
        return new SpringContextHolder();
    }
}

@@ -173,32 +173,270 @@
 ootApplication;%0A
+import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;%0Aimport org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;%0Aimport org.springframework.boot.web.servlet.server.ServletWebServerFactory;%0A
 import org.sprin
@@ -973,11 +973,312 @@
 );%0A    %7D
+%0A%0A    @Bean%0A    public ServletWebServerFactory webServerFactory() %7B%0A        TomcatServletWebServerFactory fa = new TomcatServletWebServerFactory();%0A        fa.addConnectorCustomizers((TomcatConnectorCustomizer) connector -%3E connector.setProperty(%22relaxedQueryChars%22, %22%5B%5D%7B%7D%22));%0A        return fa;%0A    %7D
 %0A%7D%0A

解决查询时输入 []{} 符号报错的问题