generated from Java-2025Fall/final-vibevault-template
32 lines
1.0 KiB
Properties
32 lines
1.0 KiB
Properties
# VibeVault Application Configuration
|
||
spring.application.name=vibevault
|
||
|
||
# Database Configuration
|
||
# 开发/测试时使用 H2 内存数据库(每次重启清空数据)
|
||
spring.datasource.url=jdbc:h2:mem:vibevault;DB_CLOSE_DELAY=-1
|
||
spring.datasource.username=sa
|
||
spring.datasource.password=
|
||
spring.datasource.driver-class-name=org.h2.Driver
|
||
|
||
# 如需使用 PostgreSQL,注释上面的 H2 配置,取消下面的注释
|
||
# spring.datasource.url=jdbc:postgresql://localhost:5432/vibevault
|
||
# spring.datasource.username=postgres
|
||
# spring.datasource.password=postgres
|
||
# spring.datasource.driver-class-name=org.postgresql.Driver
|
||
|
||
# JPA / Hibernate
|
||
spring.jpa.hibernate.ddl-auto=create-drop
|
||
spring.jpa.show-sql=true
|
||
spring.jpa.properties.hibernate.format_sql=true
|
||
|
||
# H2 Console (访问 http://localhost:8080/h2-console 查看数据库)
|
||
spring.h2.console.enabled=true
|
||
spring.h2.console.path=/h2-console
|
||
|
||
# JWT Configuration
|
||
jwt.secret=your-secret-key-here-should-be-at-least-256-bits-long-for-hs256
|
||
jwt.expiration=86400000
|
||
|
||
# Server
|
||
server.port=8080
|