|
|
|
@ -1,9 +1,14 @@
|
|
|
|
|
package com.ruoyi.system;
|
|
|
|
|
|
|
|
|
|
import org.apache.tomcat.util.http.LegacyCookieProcessor;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
|
|
|
|
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
|
|
|
|
import org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer;
|
|
|
|
|
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
|
|
|
|
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 系统模块
|
|
|
|
@ -20,4 +25,12 @@ public class RuoYiSystemApplication
|
|
|
|
|
SpringApplication.run(RuoYiSystemApplication.class, args);
|
|
|
|
|
System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ \n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public WebServerFactoryCustomizer<TomcatServletWebServerFactory> cookieProcessorCustomizer() {
|
|
|
|
|
return tomcatServletWebServerFactory -> tomcatServletWebServerFactory.addContextCustomizers((TomcatContextCustomizer) context -> {
|
|
|
|
|
context.setCookieProcessor(new LegacyCookieProcessor());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|