All checks were successful
Auto-build / Automatic-Packaging (push) Successful in 13s
- 从 application.yml 中移除数据源配置 - 在 application-dev.yml 中添加开发环境数据源配置 - 在 application-prod.yml 中添加生产环境数据源配置 - 保持 MyBatis-Plus 配置不变 - 确保不同环境使用正确的数据库连接信息
15 lines
236 B
YAML
15 lines
236 B
YAML
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
profiles:
|
|
active: @spring.profiles.active@
|
|
application:
|
|
name: Animo
|
|
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|