From ccec1bef776b9b5fb4eb0d32de5ff0f982349720 Mon Sep 17 00:00:00 2001 From: etreschenkov Date: Wed, 29 Jun 2022 17:15:51 +0300 Subject: [PATCH] add storage module --- pom.xml | 1 + storage/pom.xml | 65 +++++++++++++++++++ .../clearing/storage/StorageApplication.java | 20 ++++++ 3 files changed, 86 insertions(+) create mode 100644 storage/pom.xml create mode 100644 storage/src/main/java/ru/spcex/clearing/storage/StorageApplication.java diff --git a/pom.xml b/pom.xml index 30a3f6e11..22d81be9b 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,7 @@ frontendapi + storage diff --git a/storage/pom.xml b/storage/pom.xml new file mode 100644 index 000000000..7066ccccb --- /dev/null +++ b/storage/pom.xml @@ -0,0 +1,65 @@ + + + + clearing + ru.spcex.clearing + SPCEX-1.0.0.0 + + 4.0.0 + + storage + + + 11 + 11 + + + + + org.springframework + spring-jdbc + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-autoconfigure + + + + jar/${project.artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + + + + + ru.spcex.clearing.storage.StorageApplication + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + true + exec + + + + + \ No newline at end of file diff --git a/storage/src/main/java/ru/spcex/clearing/storage/StorageApplication.java b/storage/src/main/java/ru/spcex/clearing/storage/StorageApplication.java new file mode 100644 index 000000000..2a75e5f7a --- /dev/null +++ b/storage/src/main/java/ru/spcex/clearing/storage/StorageApplication.java @@ -0,0 +1,20 @@ +package ru.spcex.clearing.storage; + +import org.slf4j.LoggerFactory; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; + +@SpringBootApplication +public class StorageApplication { + + public static void main(String[] args) { + try { + SpringApplicationBuilder builder = new SpringApplicationBuilder(StorageApplication.class); + builder.run(args); + } catch (Throwable e) { + LoggerFactory.getLogger(StorageApplication.class).error("STORAGE start failed: {} -> {}", e.getClass().getSimpleName(), e.getMessage()); + System.exit(-1); + } + } + +}