From b303fb70b140fe417d42dadfd467a204e128ee7f Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Thu, 29 Sep 2022 11:26:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/RuoYiApplication.java | 30 ------------------- .../src/main/resources/application.yml | 3 -- 2 files changed, 33 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java index 4d0989e..8df5024 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java @@ -19,34 +19,4 @@ public class RuoYiApplication SpringApplication.run(RuoYiApplication.class, args); System.out.println("(♥◠‿◠)ノ゙ ---tongue---启动成功 ლ(´ڡ`ლ)゙ "); } - - - @Bean - public TomcatServletWebServerFactory servletContainer() { //springboot2 新变化 - - TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() { - - @Override - protected void postProcessContext(Context context) { - - SecurityConstraint securityConstraint = new SecurityConstraint(); - securityConstraint.setUserConstraint("CONFIDENTIAL"); - SecurityCollection collection = new SecurityCollection(); - collection.addPattern("/*"); - securityConstraint.addCollection(collection); - context.addConstraint(securityConstraint); - } - }; - tomcat.addAdditionalTomcatConnectors(initiateHttpConnector()); - return tomcat; - } - - private Connector initiateHttpConnector() { - Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol"); - connector.setScheme("http"); - connector.setPort(8888); - connector.setSecure(false); - connector.setRedirectPort(9080); - return connector; - } } diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 856e711..17298ba 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -34,9 +34,6 @@ server: max: 800 # Tomcat启动初始化的线程数,默认值10 min-spare: 100 - ssl: - key-store: tongue.nanjingyinuo.com.jks - key-store-password: 123456 # 日志配置 logging: