commit 715897969901382c0fbbe08810803a843b9225e0 Author: etreshenkov Date: Wed Jun 29 16:05:31 2022 +0300 add frontendapi module diff --git a/frontendapi/pom.xml b/frontendapi/pom.xml new file mode 100644 index 000000000..f1c5f45ce --- /dev/null +++ b/frontendapi/pom.xml @@ -0,0 +1,65 @@ + + + 4.0.0 + frontendapi + Clearing Frontend API + Clearing frontend API module + war + + + clearing + ru.spcex.clearing + SPCEX-1.0.0.0 + + + + + + + + + org.springframework.boot + spring-boot-starter-web + + + + frontendapi + + + org.apache.maven.plugins + maven-war-plugin + + + + ru.spcex.clearing.frontendapi.FrontendApplication + + + + + true + src/main/web + + **/web.xml + + + + WEB-INF/classes/static/protected/tools/ + true + + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + \ No newline at end of file diff --git a/frontendapi/src/main/java/ru/spcex/clearing/frontendapi/FrontendApplication.java b/frontendapi/src/main/java/ru/spcex/clearing/frontendapi/FrontendApplication.java new file mode 100644 index 000000000..b4f960e00 --- /dev/null +++ b/frontendapi/src/main/java/ru/spcex/clearing/frontendapi/FrontendApplication.java @@ -0,0 +1,31 @@ +package ru.spcex.clearing.frontendapi; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.web.context.WebApplicationContext; + +import javax.servlet.ServletContext; +import javax.servlet.ServletException; + +@SpringBootApplication +public class FrontendApplication extends SpringBootServletInitializer { + + @Override + public void onStartup(ServletContext servletContext) throws ServletException { + super.onStartup(servletContext); + } + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + // springApplicationBuilder.initializers(DfaConfig.get().getLoggingInitializer()); + return builder.sources(FrontendApplication.class); + } + + @Override + protected WebApplicationContext run(SpringApplication application) { + return super.run(application); + } + +} diff --git a/frontendapi/src/main/web/WEB-INF/web.xml b/frontendapi/src/main/web/WEB-INF/web.xml new file mode 100644 index 000000000..f951a8c6c --- /dev/null +++ b/frontendapi/src/main/web/WEB-INF/web.xml @@ -0,0 +1,17 @@ + + + ${project.name} ${project.version} (${timestamp}) + + + 60 + + + + spcex_web + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..30a3f6e11 --- /dev/null +++ b/pom.xml @@ -0,0 +1,151 @@ + + + 4.0.0 + + ru.spcex.clearing + clearing + __parent_ROOT + Clearing main parent + pom + SPCEX-1.0.0.0 + + + frontendapi + + + + 11 + 11 + utf-8 + 11 + Maven + + SPCEX-1.0.0.0 + + 2.3.12.RELEASE + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + ru.spcex.clearing + frontendapi + ${global.project.version} + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + + org.apache.maven.plugins + maven-clean-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.0 + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-war-plugin + 3.2.0 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${project.java.version} + ${project.java.version} + ${project.build.sourceEncoding} + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + true + true + + + ${built.by} + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + ${built.by} + + + + + + org.apache.maven.plugins + maven-war-plugin + + + + true + true + + + ${built.by} + + + + + + + \ No newline at end of file