Spring Boot Externalization

In this example we are going to externalize MySQL database connection using a yaml file. In order to get the setup for this example, please refer my previous post Spring Boot JPA First we need to create our yml file in ${USER_HOME}/.spring-boot-jpa/application-development.yaml spring: datasource: url: jdbc:mysql://localhost/spring_boot_jpa username: username password: password driverClassName: com.mysql.jdbc.Driver jpa: generateDdl: true Next we need to add bootRun closure and specify a system properties in our build.gradle file [Read More]