This commit is contained in:
2026-04-30 16:27:58 +08:00
parent ac6442a452
commit 2adefb5207
16 changed files with 284 additions and 349 deletions
+4 -5
View File
@@ -9,7 +9,6 @@ spring:
hibernate:
ddl-auto: validate
# H2 uses the same SQL dialect as MySQL in MySQL compatibility mode
database-platform: org.hibernate.dialect.H2Dialect
# H2 console — enabled in dev ONLY.
# Access restricted to ROLE_ADMIN via Spring Security (see WebSecurityConfig).
@@ -46,10 +45,8 @@ spring:
stat-view-servlet:
enabled: true
url-pattern: /druid/*
# Druid's own login — change before deploying to any shared environment
# Druid UI gated by Spring Security ROLE_ADMIN; built-in basic auth disabled
reset-enable: false
login-username: admin
login-password: changeme_dev
allow: 127.0.0.1
# Flyway: run V1 + V2 migrations on H2 in-memory DB on startup
@@ -59,4 +56,6 @@ spring:
user: ${spring.datasource.username}
password: ${spring.datasource.password}
port: 80
# Override default port for dev profile
server:
port: 80