daggerok / spring-jdbc-h2-schema

This repo demonstrates spring-boot JDBC using filesystem based h2 database in MySQL mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-jdbc-h2-schema Build Status

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

About

This repo demonstrates spring-boot JDBC using filesystem based h2 database in MySQL mode

License:MIT License


Languages

Language:Java 94.6%Language:Kotlin 5.4%