aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:17:47 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:17:47 +0300
commit72ba4ae3f646b12d7b02094d3d8afd77148f8083 (patch)
treec1ddaa27d18521f5b02a79c625c4a7793f00a1da /src
feat: init gradle repo
Diffstat (limited to 'src')
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/ServletInitializer.java13
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplication.java13
-rw-r--r--src/main/resources/application.properties2
-rw-r--r--src/test/java/ru/mrfoxygmfr/warehouse_accounting/WarehouseAccountingApplicationTests.java13
4 files changed, 41 insertions, 0 deletions
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() {
+ }
+
+}