feat:数据库连接、序列化日期

This commit is contained in:
lbw
2025-12-09 19:27:04 +08:00
parent 247a3c9a5e
commit 0d0cf2ef5b
16 changed files with 336 additions and 19 deletions

View File

@@ -0,0 +1,7 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver # 指定数据库驱动类
# 数据库连接信息
url: jdbc:mysql://124.220.58.5:3306/enlish
username: root # 数据库用户名
password: YLHP@admin123 # 数据库密码

View File

@@ -0,0 +1,10 @@
server:
port: 8080 # 项目启动的端口
spring:
profiles:
active: dev # 默认激活 dev 本地开发环境
mybatis:
# MyBatis xml 配置文件路径
mapper-locations: classpath:/mapper/**/*.xml