-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathapplication.properties
More file actions
37 lines (32 loc) · 1.71 KB
/
application.properties
File metadata and controls
37 lines (32 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server.port: 9000
management.server.port: 9001
management.server.address: 0.0.0.0
management.endpoints.web.exposure.include=health,info,mappings
# http://localhost:9001/actuator/health
management.endpoint.health.show-details=always
# http://localhost:9001/actuator/info
management.info.env.enabled=true
info.app.name=Sample RESTful Web Service with Spring Boot
info.app.description=Proof of Concept for a RESTful Web Service made with Spring Boot 4 targeting JDK 25
springdoc.api-docs.path=/docs
springdoc.swagger-ui.path=/swagger/index.html
# SQLite Database Configuration
# Uses environment variable STORAGE_PATH if set, otherwise defaults to local path
# Contains players table with dates stored as ISO-8601 TEXT
spring.datasource.url=jdbc:sqlite:${STORAGE_PATH:storage/players-sqlite3.db}
spring.datasource.driver-class-name=org.sqlite.JDBC
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.format_sql=true
# Flyway Database Migration Configuration
# Flyway manages all schema creation and seed data via versioned SQL migrations.
# baseline-on-migrate: treats an existing database (without flyway_schema_history)
# as already at baseline-version, avoiding re-running migrations on pre-seeded DBs.
# baseline-version=3: baselines existing databases at V3 (schema + all seed data
# already applied), while fresh databases run V1 → V2 → V3 from scratch.
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
spring.flyway.baseline-on-migrate=true
spring.flyway.baseline-version=3