配置文件

This commit is contained in:
cyk 2023-12-19 21:38:23 +08:00
parent 9773f42df7
commit 8677b21928
2 changed files with 22 additions and 2 deletions

View File

@ -39,6 +39,15 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>

View File

@ -2,9 +2,20 @@ spring:
datasource: datasource:
url: jdbc:mysql://localhost:3306/love-nav url: jdbc:mysql://localhost:3306/love-nav
username: root username: root
password: 1611 password: Cheng123...
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
redis:
host: localhost
port: 6379
password: Cheng123...
database: 0
lettuce:
pool:
max-idle: 200
max-active: 1024
min-idle: 0
max-wait: -1
timeout: 10000