dev
caolin 2024-06-30 17:06:29 +08:00
parent df4345f34c
commit 19cffe1c7c
3 changed files with 20 additions and 9 deletions

View File

@ -35,6 +35,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 获取spring boot相关应用程序信息 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@ -1,16 +1,16 @@
spring:
# redis 配置
redis:
# host: 127.0.0.1
# port: 6379
# database: 8
# timeout: 5000
# auth: caolin123
host: 118.31.23.45
port: 6973
host: 127.0.0.1
port: 6379
database: 8
timeout: 5000
password: c12&%3s7l=
auth: caolin123
# host: 118.31.23.45
# port: 6973
# database: 8
# timeout: 5000
# password: c12&%3s7l=
# 数据库 配置
datasource:

View File

@ -2,12 +2,18 @@ server:
port: 8888
servlet:
context-path: '/driver-api'
# 程序状态监控
management:
endpoints:
web:
exposure:
include: "*"
spring:
application:
name: '@artifactId@'
profiles:
active: prod
active: dev
#mybatis
mybatis-plus:
mapper-locations: classpath*:/mapper/**Mapper.xml