Procházet zdrojové kódy

药剂台账添加excle

hanqingsong před 3 roky
rodič
revize
2bcbb0c857

+ 0 - 5
pom.xml

@@ -124,11 +124,6 @@
124 124
             <groupId>org.springframework</groupId>
125 125
             <artifactId>spring-context-support</artifactId>
126 126
         </dependency>
127
-        <dependency>
128
-            <groupId>org.apache.shardingsphere</groupId>
129
-            <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
130
-            <version>5.1.0</version>
131
-        </dependency>
132 127
         <!-- 日志-->
133 128
         <dependency>
134 129
             <groupId>ch.qos.logback</groupId>

+ 0 - 4
src/main/java/com/DepotIntelligentApplication.java

@@ -4,14 +4,10 @@ import org.mybatis.spring.annotation.MapperScan;
4 4
 import org.springframework.boot.SpringApplication;
5 5
 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 6
 import org.springframework.boot.web.servlet.ServletComponentScan;
7
-import org.springframework.boot.web.servlet.ServletRegistrationBean;
8
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
9 7
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
10 8
 import org.springframework.context.annotation.Bean;
11 9
 import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
12 10
 import org.springframework.web.client.RestTemplate;
13
-import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
14
-import org.springframework.web.servlet.DispatcherServlet;
15 11
 
16 12
 @EnableEurekaClient
17 13
 @SpringBootApplication

+ 6 - 36
src/main/resources/bootstrap.yml

@@ -81,42 +81,12 @@ eureka:
81 81
 
82 82
 spring:
83 83
   profiles: locala
84
-  shardingsphere:
85
-    props:
86
-      sql-show: true
87
-    mode:
88
-      type: Standalone
89
-      overwrite: true
90
-      repository:
91
-        type: File
92
-        props:
93
-          path: D:/Standalone/depot-intelligent
94
-    datasource:
95
-      names: depot-master-01,depot-slave-01
96
-      depot-master-01:
97
-        type: com.zaxxer.hikari.HikariDataSource
98
-        driver-class-name: com.mysql.cj.jdbc.Driver
99
-        jdbc-url: jdbc:mysql://172.16.0.8:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
100
-        username: root
101
-        password: 123456
102
-      depot-slave-01:
103
-        type: com.zaxxer.hikari.HikariDataSource
104
-        driver-class-name: com.mysql.cj.jdbc.Driver
105
-        jdbc-url: jdbc:mysql://172.16.0.9:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
106
-        username: root
107
-        password: 123456
108
-    rules:
109
-      readwrite-splitting:
110
-        data-sources:
111
-          depot:
112
-            type: Static
113
-            props:
114
-              write-data-source-name: depot-master-01
115
-              read-data-source-names: depot-slave-01
116
-            load-balancer-name: depot_algorithm
117
-        load-balancers:
118
-          depot_algorithm:
119
-            type: ROUND_ROBIN
84
+  # 数据库配置
85
+  datasource:
86
+    driverClassName: com.mysql.cj.jdbc.Driver
87
+    url: jdbc:mysql://101.36.160.140:21029/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
88
+    username: root
89
+    password: 1qaz@WSX
120 90
   # 缓存配置
121 91
   session:
122 92
     store-type: redis