Repository navigation
Expand file tree
/
Copy pathapplication.yml
More file actions
67 lines (59 loc) · 1.96 KB
/
Copy pathapplication.yml
File metadata and controls
67 lines (59 loc) · 1.96 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
server:
port: '8080'
# Logging
logging:
level:
org: info
com:
intellias:
basicsandbox: # You can change desired logging level for specific package.
controller: INFO # For example for all classes inside controller packages to use DEBUG level: logging.level.com.intellias.basicsandbox.controller=DEBUG
spring:
# Datasource
datasource:
url: 'jdbc:postgresql://localhost:5432/sandbox_db'
username: user
password: password
# Hibernate
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
show_sql: false
format_sql: false
dialect: org.hibernate.dialect.PostgreSQL94Dialect
# Flyway
flyway:
enabled: true
locations: 'classpath:/db/migration/'
# App specific
app:
dev:
service-logging-enable: true # Aspect driven logging of all @Service annotated classes
security:
enabled: true # You can enable or disable app authentication using this property
# Spring Actuator
management:
server:
port: 8081 # You can customize port used by Actuator using this property
info:
env:
enabled: true # Enabling custom behaviour of the `/info` endpoint
endpoints:
web:
exposure:
include: health, metrics, info, httpexchanges, flyway, beans, openapi, swagger-ui # List of endpoints enabled in Actuator
cors: # If you want to reach the Actuator endpoints through the Swagger UI when Actuator and Application utilizes different ports, CORS for your actuator endpoints should be enabled.
allowed-origins: '*'
allowed-methods: GET
allowed-headers: '*'
# Customizing the Spring Actuator `/info` endpoint data
info:
application:
name: Java Sandbox Application
description: Basic service to start your own by copying and adjusting for your needs
version: '@project.version@'
# Documenting Spring Actuator endpoints
springdoc:
show-actuator: true # Enable displaying the Spring Actuator endpoints on the `Swagger-UI` page