Created
March 17, 2020 21:07
-
-
Save Pinwheeler/2230842088eef67be06559cd1fd7b796 to your computer and use it in GitHub Desktop.
Sample application.properties file
This file contains 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
# Here, spring.jpa.hibernate.ddl-auto can be none, update, create, create-drop, refer to the Hibernate documentation for details | |
# https://spring.io/guides/gs/accessing-data-mysql/ | |
spring.jpa.hibernate.ddl-auto=none | |
# Connection details | |
spring.datasource.url=jdbc:postgresql://localhost:5432/db_name | |
spring.datasource.username=username | |
spring.datasource.password=password | |
# Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details. | |
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false | |
# Because detection is disabled you have to set correct dialect by hand. | |
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect | |
# Maxiumum number of DB connections allowed | |
spring.datasource.hikari.maximum-pool-size=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment