diff --git a/jboot-jdbc-application/pom.xml b/jboot-jdbc-application/pom.xml index 81378e3..4eb1ce5 100644 --- a/jboot-jdbc-application/pom.xml +++ b/jboot-jdbc-application/pom.xml @@ -19,10 +19,6 @@ org.springframework.boot spring-boot-starter-jdbc - - org.springframework.boot - spring-boot-starter-test - com.h2database h2 diff --git a/jboot-jdbc-application/src/main/resources/application.properties b/jboot-jdbc-application/src/main/resources/application.properties index dc3a581..f818c9a 100644 --- a/jboot-jdbc-application/src/main/resources/application.properties +++ b/jboot-jdbc-application/src/main/resources/application.properties @@ -1,3 +1,4 @@ +#freemarker settings spring.freemarker.allowRequestOverride=false spring.freemarker.cache=true spring.freemarker.checkTemplateLocation=true @@ -10,6 +11,7 @@ spring.freemarker.requestContextAttribute=request spring.freemarker.suffix=.ftl spring.freemarker.templateLoaderPath=classpath:/templates/ +#schema init settings spring.datasource.name=dataSource spring.datasource.initialize=true spring.datasource.schema=classpath:/sql/schema.sql @@ -18,6 +20,7 @@ spring.datasource.sqlScriptEncoding=UTF-8 spring.datasource.continueOnError=false spring.datasource.separator=; +#jdbc settings use h2database-mem-model spring.datasource.driverClassName=org.h2.Driver spring.datasource.url=jdbc:h2:mem:jboot spring.datasource.username=sa diff --git a/jboot-jdbc-application/src/main/resources/templates/index.ftl b/jboot-jdbc-application/src/main/resources/templates/index.ftl index 1426dd2..34f1938 100644 --- a/jboot-jdbc-application/src/main/resources/templates/index.ftl +++ b/jboot-jdbc-application/src/main/resources/templates/index.ftl @@ -38,5 +38,5 @@ - - \ No newline at end of file + + \ No newline at end of file