spring boot application.properties mysql code example
Example 1: spring application properties mysql jpa
spring.datasource.url=jdbc:mysql:
spring.datasource.username=${USERNAME}
spring.datasource.password=${PASSWORD}
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.logging.level.org.hibernate.SQL=debug
spring.jpa.show-sql=true
Example 2: mysql driver spring jpa application.properties
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql:
spring.datasource.username=springuser
spring.datasource.password=ThePasswordCopy
Example 3: mysql spring boot application.properties
spring.datasource.url=jdbc:mysql:
spring.datasource.username=user1
spring.datasource.password=pass
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver