-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.properties
32 lines (27 loc) · 1.08 KB
/
application.properties
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
#---------------------------------------
#Disable Thymeleaf Cache; Needed because of DevTools
##spring.thymeleaf.cache=false
#---------------------------------------
#Ennable H2 Console
##spring.h2.console.enabled=true
##spring.h2.console.path=/h2-console
#---------------------------------------
#Enalbe JPA Logs
##spring.jpa.show-sql=true
##spring.jpa.properties.hibernate.format_sql=true
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5
# Fix Postgres JPA Error:
# Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults= false
## PostgreSQL
spring.datasource.url=jdbc:postgresql://localhost:5432/Automat
spring.jpa.generate-ddl=true
spring.datasource.username=postgres
spring.datasource.password=1234567890
#drop n create table again, good for testing, comment this in production
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=true
##spring.datasource.schema=classpath:/data.sql
## Damit Data.SQL eingebunden wird.
spring.datasource.initialization-mode=always