Skip to content

Instantly share code, notes, and snippets.

@riipandi
Created July 9, 2020 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riipandi/0706209b95ca0b3a2013354fd695d412 to your computer and use it in GitHub Desktop.
Save riipandi/0706209b95ca0b3a2013354fd695d412 to your computer and use it in GitHub Desktop.
Spring Boot Dev Notes
# Database connection parameter
spring.datasource:
url: jdbc:postgresql://localhost:5432/dbname?useSSL=false&useLegacyDatetimeCode=false
username: postgres
password: dbpasswd
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate.ddl-auto: update
open-in-view: false
show-sql: false
spring.mail:
host: smtp.mailtrap.io
username: xxxxxxxxxxxxxx
password: xxxxxxxxxxxxxx
port: 2525
logging:
level:
root: fatal
org.springframework.boot.web: info
org.springframework.web: info
org.hibernate.SQL: error
org.hibernate.type: error
com.example: trace # dev = trace, prod = info
file.name: logs/appname.log
server:
ssl:
enabled: false
keyStoreType: PKCS12
key-store: classpath:keystore/localhost.jks
keyAlias: localhost
key-store-password: secret
error:
include-stacktrace: never
whitelabel.enabled: false
servlet.context-path: /
port: 8080
spring:
main.banner-mode: off
main.log-startup-info: false
devtools.add-properties: false
mvc.throw-exception-if-no-handler-found: true
resources.static-locations: classpath:/static/,classpath:/public/
resources.add-mappings: true
mustache.expose-request-attributes: true
# Enable multipart uploads
spring.servlet:
multipart.enabled: true
multipart.file-size-threshold: 2KB
multipart.max-file-size: 200MB
multipart.max-request-size: 215MB
#springdoc:
# api-docs.path: /api-docs
# swagger-ui.path: /swagger-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment