From 04112db62c6cb4954d0ab3fe8ef32a8926a6be65 Mon Sep 17 00:00:00 2001 From: uPagge Date: Mon, 22 Mar 2021 15:52:14 +0300 Subject: [PATCH] add maven dependency --- pom.xml | 19 +++++++++++++------ src/main/resources/application.properties | 1 - src/main/resources/application.yaml | 3 +++ src/main/resources/db/changelog/changelog.xml | 8 ++++++++ .../SpringValidationApplicationTests.java | 13 ------------- 5 files changed, 24 insertions(+), 20 deletions(-) delete mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/application.yaml create mode 100644 src/main/resources/db/changelog/changelog.xml delete mode 100644 src/test/java/org/sadtech/example/springvalidation/SpringValidationApplicationTests.java diff --git a/pom.xml b/pom.xml index 3adf855..62b4362 100644 --- a/pom.xml +++ b/pom.xml @@ -8,15 +8,27 @@ 2.4.4 + org.sadtech.example spring-validation 0.0.1-SNAPSHOT spring-validation - Demo project for Spring Boot + 11 + + + javax.validation + validation-api + + + org.hibernate + hibernate-validator + 7.0.0.Final + + org.springframework.boot spring-boot-starter-data-jpa @@ -40,11 +52,6 @@ lombok true - - org.springframework.boot - spring-boot-starter-test - test - diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 8b13789..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..944e801 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,3 @@ +spring: + liquibase: + change-log: classpath:db/changelog/changelog.xml \ No newline at end of file diff --git a/src/main/resources/db/changelog/changelog.xml b/src/main/resources/db/changelog/changelog.xml new file mode 100644 index 0000000..dcae37f --- /dev/null +++ b/src/main/resources/db/changelog/changelog.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/src/test/java/org/sadtech/example/springvalidation/SpringValidationApplicationTests.java b/src/test/java/org/sadtech/example/springvalidation/SpringValidationApplicationTests.java deleted file mode 100644 index 713c713..0000000 --- a/src/test/java/org/sadtech/example/springvalidation/SpringValidationApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.sadtech.example.springvalidation; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class SpringValidationApplicationTests { - - @Test - void contextLoads() { - } - -}