This repo showing how setup:
-
spring-boot JDBC
-
filesystem based h2 database in MySQL mode
branch java-config contains jdbc DDL/DML populator java configuration
branch default-schame-and-data-files-location contains jdbc DDL/DML populator by default spring-boot initialize database convention:
-
src/main/resources/schema.sql
DDL scripts -
src/main/resources/data.sql
DML scripts
and finally spring-datasource-platform
branch contains platform specific sql scripts (do not forget setup spring.datasource.platform
properties in
src/main/resources/application.properties
or src/main/resources/application.yaml
config file
links:
gradle
./gradlew
java -jar build/libs/*.jar
bash build/libs/*.jar
maven
./mvnw
java -jar target/*.jar
bash target/*.jar
generated by jvm yeoman generator