From 72ba4ae3f646b12d7b02094d3d8afd77148f8083 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Mon, 17 Mar 2025 12:17:47 +0300 Subject: feat: init gradle repo --- .../mrfoxygmfr/warehouse_accounting/ServletInitializer.java | 13 +++++++++++++ .../WarehouseAccountingApplication.java | 13 +++++++++++++ src/main/resources/application.properties | 2 ++ .../WarehouseAccountingApplicationTests.java | 13 +++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/ServletInitializer.java create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplication.java create mode 100644 src/main/resources/application.properties create mode 100644 src/test/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplicationTests.java (limited to 'src') diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/ServletInitializer.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/ServletInitializer.java new file mode 100644 index 0000000..79fbfd2 --- /dev/null +++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/ServletInitializer.java @@ -0,0 +1,13 @@ +package ru.mrfoxygmfr.warehouse_accounting; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +public class ServletInitializer extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(WarehouseAccountingApplication.class); + } + +} diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplication.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplication.java new file mode 100644 index 0000000..55d9144 --- /dev/null +++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplication.java @@ -0,0 +1,13 @@ +package ru.mrfoxygmfr.warehouse_accounting; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class WarehouseAccountingApplication { + + public static void main(String[] args) { + SpringApplication.run(WarehouseAccountingApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..e711a88 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,2 @@ +spring.application.name=warehouse_accounting + diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplicationTests.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplicationTests.java new file mode 100644 index 0000000..e56c3da --- /dev/null +++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplicationTests.java @@ -0,0 +1,13 @@ +package ru.mrfoxygmfr.warehouse_accounting; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class WarehouseAccountingApplicationTests { + + @Test + void contextLoads() { + } + +} -- cgit mrf-deployment