diff --git a/lottery-system/lottery-service/pom.xml b/lottery-system/lottery-service/pom.xml
index 21e527e..a6a2048 100644
--- a/lottery-system/lottery-service/pom.xml
+++ b/lottery-system/lottery-service/pom.xml
@@ -11,12 +11,12 @@
lottery-service
-
- 11
- 11
- UTF-8
-
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
com.lottery
lottery-pojo
@@ -29,25 +29,24 @@
lottery-common
1.0-SNAPSHOT
-
-
-
-
-
-
-
-
-
-
-
com.alibaba
easyexcel
3.1.3
-
-
-
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ com.lottery.LotteryApplication
+
+
+
+
\ No newline at end of file
diff --git a/lottery-system/lottery-service/src/main/java/com/lottery/LotteryApplication.java b/lottery-system/lottery-service/src/main/java/com/lottery/LotteryApplication.java
index e9e6543..335f647 100644
--- a/lottery-system/lottery-service/src/main/java/com/lottery/LotteryApplication.java
+++ b/lottery-system/lottery-service/src/main/java/com/lottery/LotteryApplication.java
@@ -10,7 +10,6 @@ import javax.swing.*;
@SpringBootApplication
@MapperScan("com.lottery.*.mapper")
-@ComponentScan(basePackages = {"com.lottery"})
public class LotteryApplication {
public static void main(String[] args) {
SpringApplication.run(LotteryApplication.class, args);
diff --git a/lottery-system/lottery-service/src/main/resources/application.yml b/lottery-system/lottery-service/src/main/resources/application.yml
index c1cf29a..7dfc2f3 100644
--- a/lottery-system/lottery-service/src/main/resources/application.yml
+++ b/lottery-system/lottery-service/src/main/resources/application.yml
@@ -1,12 +1,12 @@
server:
- port: 8080 # 服务端口
+ port: 12699 # 服务端口
spring:
# ========== 数据源配置 (MySQL) ==========
datasource:
- url: jdbc:mysql://localhost:3306/lottery_system?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
- username: root
- password: 123456
+ url: jdbc:mysql://39.101.133.168:3306/link?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+ username: link
+ password: tEhdERkaGprEA7nT
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: LotteryHikariCP
@@ -14,18 +14,18 @@ spring:
connection-timeout: 30000
# ========== Redis 配置 ==========
- redis:
- host: 127.0.0.1
- port: 6379
- password: # 若无密码则留空
- database: 0 # 默认DB索引
- jedis:
- pool:
- max-active: 8 # 最大连接数
- max-wait: 5000ms # 最大等待时间
- max-idle: 4 # 最大空闲连接
- min-idle: 1 # 最小空闲连接
- timeout: 3000ms # 连接超时时间
+# redis:
+# host: 127.0.0.1
+# port: 6379
+# password: # 若无密码则留空
+# database: 0 # 默认DB索引
+# jedis:
+# pool:
+# max-active: 8 # 最大连接数
+# max-wait: 5000ms # 最大等待时间
+# max-idle: 4 # 最大空闲连接
+# min-idle: 1 # 最小空闲连接
+# timeout: 3000ms # 连接超时时间
# ========== MyBatis 配置(如果使用MyBatis代替JPA) ==========
diff --git a/lottery-system/pom.xml b/lottery-system/pom.xml
index 8c22844..cba774a 100644
--- a/lottery-system/pom.xml
+++ b/lottery-system/pom.xml
@@ -6,9 +6,8 @@
org.springframework.boot
spring-boot-starter-parent
2.7.0
-
- pom
+
lottery-service
lottery-pojo
@@ -19,6 +18,7 @@
com.lottery
lottery-system
1.0-SNAPSHOT
+ pom
11
@@ -115,7 +115,23 @@
0.11.5
runtime
-
-
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+
+