zhao 5 ay önce
ebeveyn
işleme
be581d5e5f

+ 11 - 6
nngkxxdp/src/main/java/com/example/nngkxxdp/NngkxxdpApplication.java

@@ -1,25 +1,30 @@
 package com.example.nngkxxdp;
 
-import org.apache.catalina.connector.Connector;
+import com.example.nngkxxdp.task.HandleTask;
 import org.mybatis.spring.annotation.MapperScan;
-import org.springframework.beans.factory.annotation.Value;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.CommandLineRunner;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
 import org.springframework.boot.web.servlet.ServletComponentScan;
-import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
-import org.springframework.context.annotation.Bean;
 import org.springframework.scheduling.annotation.EnableScheduling;
 
 @SpringBootApplication
 @EnableScheduling
 @ServletComponentScan
 @MapperScan({"com.example.nngkxxdp.dao", "com.example.nngkxxdp.program.dao"})
-public class NngkxxdpApplication {
+public class NngkxxdpApplication implements CommandLineRunner {
 //
+    @Autowired
+    private HandleTask handleTask;
 
     public static void main(String[] args) {
         SpringApplication.run(NngkxxdpApplication.class, args);
     }
 
+
+    public void run(String... args) throws Exception {
+        // 加载今日的办件量
+        handleTask.loadDailyCount();
+    }
 }

+ 15 - 11
nngkxxdp/src/main/resources/application-dev.yml

@@ -1,8 +1,8 @@
 server:
-  port: 8082
+  port: 8443
 file:
-  path: F:/upload/
-  location: F:/upload/upload/
+  path: C:/upload/
+  location: C:/upload/upload/
 http:
   port: 80
 
@@ -13,10 +13,12 @@ spring:
       max-request-size: 500MB
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    #    本地192.168.1.226
-    url: jdbc:mysql://116.63.33.55:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+    #    116.63.33.55
+    #    cqjd2021!
+    #    Jd2024!
+    url: jdbc:mysql://localhost:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
     username: root
-    password: cqjd2021!
+    password: Jd2024!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
   #  mvc:
@@ -24,18 +26,20 @@ spring:
   #      enabled: false
   redis:
     database: 0
-#    host: 116.63.49.144
-#    port: 6380
-#    password: '@jvdong_2022'
+    #    host: 116.63.49.144
+    #    port: 6380
+    #    password: '@jvdong_2022'
     host: localhost
     port: 6379
-    password: 123456
+    password: Jd202410!
     jedis:
       pool:
         max-active: 50
         max-idle: 20
         min-idle: 5
     #        max-wait: 5
+  freemarker:
+    check-template-location: false
 elasticsearch:
   ip: 192.168.1.253:9200
   # 索引名
@@ -44,4 +48,4 @@ elasticsearch:
 mybatis:
   configuration:
     #开启sql日志文件
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

+ 26 - 15
nngkxxdp/src/main/resources/application-prod.yml

@@ -1,8 +1,10 @@
 server:
-  port: 7654
+  port: 8444
 file:
-  path: D:/na_web_img/
-  location: D:/na_web_img/upload/
+  path: C:/upload/
+  location: C:/upload/upload/
+http:
+  port: 80
 
 spring:
   servlet:
@@ -11,30 +13,39 @@ spring:
       max-request-size: 500MB
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-
-#    线上
+    #    116.63.33.55
+    #    cqjd2021!
+    #    Jd2024!
     url: jdbc:mysql://localhost:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
-    username: nanan_hospital
-    password: WArNNbSUVaxM7sB2
+    username: root
+    password: Jd2024!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
-#        url: jdbc:mysql://42.193.98.201:3306/wxdzs?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+  #  mvc:
+  #    favicon:
+  #      enabled: false
   redis:
     database: 0
-    host: 192.168.197.128
+    #    host: 116.63.49.144
+    #    port: 6380
+    #    password: '@jvdong_2022'
+    host: localhost
     port: 6379
-#    password: nan2022!Redis
+    password: Jd202410!
     jedis:
       pool:
         max-active: 50
         max-idle: 20
         min-idle: 5
+    #        max-wait: 5
+  freemarker:
+    check-template-location: false
 elasticsearch:
-  ip: localhost:9200
+  ip: 192.168.1.253:9200
   # 索引名
   index: elk_article
   index2: article_library
-
-logging:
-  level:
-    com.example.nngkxxdp: DEBUG,INFO,WARN,ERROR,FATAL
+mybatis:
+  configuration:
+    #开启sql日志文件
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl