Files
training/.env.example
2026-07-28 12:52:36 +08:00

21 lines
625 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 当前环境标识。项目连接外部 MySQL不通过 Docker 创建数据库。
APP_ENV=development
# 外部 MySQL 连接配置。请在本地 .env 或部署 Secret 中填写真实值。
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_DATABASE=training
MYSQL_USER=training
MYSQL_PASSWORD=change-this-password
MYSQL_ROOT_PASSWORD=change-this-root-password
# Spring Boot 运行配置。
SERVER_PORT=8080
SPRING_JPA_HIBERNATE_DDL_AUTO=none
SPRING_JPA_SHOW_SQL=false
SPRING_JPA_OPEN_IN_VIEW=false
SPRING_JPA_PROPERTIES_HIBERNATE_FORMAT_SQL=false
LOGGING_LEVEL_COM_EXAMPLE_TRAINING=DEBUG
LOGGING_LEVEL_ORG_HIBERNATE_SQL=DEBUG