Animo-Server/src/main/resources/application.yml
Grand-cocoa 1aabc49521
All checks were successful
Auto-build / Automatic-Packaging (push) Successful in 13s
refactor(config): 将数据源配置移至环境特定文件
- 从 application.yml 中移除数据源配置
- 在 application-dev.yml 中添加开发环境数据源配置
- 在 application-prod.yml 中添加生产环境数据源配置
- 保持 MyBatis-Plus 配置不变
- 确保不同环境使用正确的数据库连接信息
2025-11-12 15:45:38 +08:00

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