silver-mx
10/16/2019 - 6:33 AM

Useful-properties

Validate connection (via query) before using it. This is to avoid using a broken connection.

spring.datasource.testOnBorrow=true spring.datasource.validationQuery=SELECT 1

Disable SSL

server.ssl.enabled=true

Get the current working dir where JAR is executed in application.properties

working.dir.location=${user.dir}

Enable logs Spring security

logging.level.org.springframework.security=DEBUG

Set spring root PATH for all controllers

server.servlet.contextPath=/api/*

Dont return stacktrace with HTTP errors

server.error.include-stacktrace=never

Include error message in response

server.error.include-message=always

Jackson mapper options

spring.jackson.default-property-inclusion=non_null

Spring scheduler pool size for @Scheduler annotations

#Thread pool size spring.task.scheduling.pool.size=5 #Thread name prefix spring.task.scheduling.thread-name-prefix=my-scheduling-