Created
February 1, 2021 09:40
-
-
Save hadinajafi/c86bd08d3c220dd64a67c2a81be0022c to your computer and use it in GitHub Desktop.
Most common spring application properties configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| logging.level.root=info | |
| ##------------------------------------------------------ | |
| ## Datasource Config | |
| ##------------------------------------------------------ | |
| spring.datasource.driver-class-name=org.postgresql.Driver | |
| spring.jpa.properties.hibernate.id.new_generator_mappings=false | |
| spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect | |
| spring.datasource.hikari.initializationFailTimeout=15000 | |
| spring.jpa.database-platform=org | |
| spring.datasource.url=jdbc:postgresql://localhost:5432/demo-service?useUnicode=true&characterEncoding=UTF-8 | |
| spring.datasource.username=postgres | |
| spring.datasource.password=password | |
| spring.jpa.show-sql=true | |
| spring.jpa.hibernate.ddl-auto=update | |
| spring.jpa.properties.hibernate.connection.characterEncoding=utf-8 | |
| spring.jpa.properties.hibernate.connection.CharSet=utf-8 | |
| spring.jpa.properties.hibernate.connection.useUnicode=true | |
| ##------------------------------------------------------ | |
| ## swagger security | |
| ##------------------------------------------------------ | |
| swagger.enabled=true | |
| springfox.documentation.swagger.v2.path=/api-docs | |
| springfox.documentation.swagger.v1.path=/v1/api-docs | |
| ##------------------------------------------------------ | |
| ## server config | |
| ##------------------------------------------------------ | |
| server.port=8080 | |
| server.servlet.context-path=/demo-service/v1 | |
| servlet.req.resp.log.enabled=true | |
| spring.application.name=demo-service | |
| ##------------------------------------------------------ | |
| ## Kafka config | |
| ##------------------------------------------------------ | |
| spring.kafka.bootstrap-servers=kafka:9092 | |
| spring.kafka.consumer.group-id=myGroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.