初始化

This commit is contained in:
马宝龙
2026-07-27 23:20:12 +08:00
commit 5e07c24dd4
35 changed files with 2966 additions and 0 deletions

20
.env.example Normal file
View File

@@ -0,0 +1,20 @@
# 当前环境标识。项目连接外部 MySQL不通过 Docker 创建数据库。
APP_ENV=development
# 外部 MySQL 连接配置。Spring Boot 会读取这一组变量。
MYSQL_HOST=24.233.2.106
MYSQL_PORT=13322
MYSQL_DATABASE=training
MYSQL_USER=admin
MYSQL_PASSWORD=13518200336LsD@@
MYSQL_ROOT_PASSWORD=root_password
# Spring Boot 运行配置。
SERVER_PORT=8080
SPRING_JPA_HIBERNATE_DDL_AUTO=update
SPRING_JPA_SHOW_SQL=true
SPRING_JPA_OPEN_IN_VIEW=false
SPRING_JPA_PROPERTIES_HIBERNATE_FORMAT_SQL=true
LOGGING_LEVEL_COM_EXAMPLE_TRAINING=DEBUG
LOGGING_LEVEL_ORG_HIBERNATE_SQL=DEBUG