-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.yml
35 lines (35 loc) · 1.38 KB
/
application.yml
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
logging:
level:
root: INFO
server:
port: 8080
spring:
datasource:
url: jdbc:mysql://localhost:3306/workshop_security_custom_table
username: root
password: pass
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
# validate compare repositories with database tables
# if mismatch not start application
# at the beginning if you set validate look for at target database "hibernate_sequence" table
# will get exception. You can use "update" at the beginning, then you can select validate for value.
# Or you can add this config detailed below thread
# https://mkyong.com/spring-boot/spring-boot-mysql-table-db_name-hibernate_sequence-doesnt-exist/
ddl-auto: update
naming:
# if you not defined this configuration spring-jpa create tables and columns in lowercase format
# if you set "PhysicalNamingStrategyStandardImpl" create tables and columns according to
#@Table(name = "USERS_CUSTOM"), @Column(name = "username")
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
keycloak:
auth-server-url: http://localhost:9090/auth
realm: Spring-Security-oAuth2
resource: spring-boot-api
public-client: true
security-constraints[0]:
securityCollections[0]:
patterns[0]: /customers/*
authRoles[0]: user
principal-attribute: preferred_username