-
Notifications
You must be signed in to change notification settings - Fork 3
/
application_yaml.vm
42 lines (38 loc) · 1.22 KB
/
application_yaml.vm
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
38
spring:
application:
name: ${PROJECT_NAME}
#if ( $databases.hasDatabase( $model.databaseId ) )
#set($database = $databases.getDatabase( $model.databaseId ))
jpa:
open-in-view: false
database-platform: $database.dialect
show-sql: false
hibernate:
ddl-auto: none
naming:
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
datasource:
driver-class-name: $database.driverClass
username: $database.user
password: $database.password
url: $database.jdbcUrl
#else
jpa:
open-in-view: false
database-platform: org.h2.Driver
show-sql: false
hibernate:
ddl-auto: none
naming:
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
datasource:
type: com.zaxxer.hikari.HikariDataSource
username: sa
password: sa
url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
#end
hikari:
poolName: Hikari
auto-commit: false