diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..920b6a5 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,24 @@ +spring.application.name=card-acquisition + +# H2 Database +spring.datasource.url=jdbc:h2:mem:cardacquisition;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password= + +# JPA/Hibernate 6 (Spring Boot 3) +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect +spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.format_sql=true + +# H2 Console +spring.h2.console.enabled=true +spring.h2.console.path=/h2-console + +# Server +server.port=8080 + +# Jackson +spring.jackson.serialization.write-dates-as-timestamps=false +spring.jackson.date-format=yyyy-MM-dd'T'HH:mm:ss \ No newline at end of file