Skip to content

Instantly share code, notes, and snippets.

@kelverarruda
Last active June 19, 2022 01:21
Show Gist options
  • Save kelverarruda/2a4d951484252dd59d5567b1238411dc to your computer and use it in GitHub Desktop.
Save kelverarruda/2a4d951484252dd59d5567b1238411dc to your computer and use it in GitHub Desktop.
Config file Spring Boot in yml format
spring:
# POSTGRES DB CONFIG
datasource:
driver-class-name: org.postgresql.Driver
username: postgres
password: postgres
url: jdbc:postgresql://localhost:5432/<yourdatabasename>
# JPA CONFIG
jpa:
show-sql: true
hibernate:
ddl-auto: none
properties:
hibernate.format_sql: true
open-in-view: true
# PAGEABLE RESULTS CONFIG
data:
web:
pageable:
one-indexed-parameters: true
default-page-size: 25
page-parameter: pg
size-parameter: qty
sort:
sort-parameter: ord
# THYMELEAF ENCODING
thymeleaf:
encoding: UTF-8
cache: false
# MESSAGES ENCODING
messages:
encoding: UTF-8
# APP CONFIG
server:
port: 8080
servlet:
context-path: /
# SPRING DOC CONFIG
springdoc:
api-docs:
path: /api-rest/v1
swagger-ui:
path: /api-docs
# DEBUG MODE
debug: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment