You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
# 数据库配置
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/admin123?useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowPublicKeyRetrieval=true
|
|
spring.datasource.username=admin123
|
|
spring.datasource.password=admin123
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
|
# JPA配置
|
|
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
|
|
spring.jpa.hibernate.ddl-auto=create
|
|
spring.jpa.show-sql=true
|
|
spring.jpa.properties.hibernate.format_sql=true
|
|
spring.jpa.open-in-view=false
|
|
|
|
# H2控制台配置
|
|
spring.h2.console.enabled=true
|
|
spring.h2.console.path=/h2-console
|
|
|
|
# 服务器配置
|
|
server.port=8081
|
|
|
|
# 日志配置
|
|
logging.level.root=INFO
|
|
logging.level.com.example.goldminer=DEBUG
|
|
logging.level.org.springframework.web=DEBUG
|
|
logging.level.org.hibernate=DEBUG
|
|
logging.level.org.hibernate.SQL=DEBUG
|
|
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
|
|
logging.level.org.springframework.boot.autoconfigure=DEBUG
|
|
|
|
# 错误处理
|
|
server.error.include-message=always
|
|
server.error.include-binding-errors=always
|
|
server.error.include-stacktrace=always |