From ba46a48cb83f8d409fb265c11d5efdc9eb8efd3d Mon Sep 17 00:00:00 2001 From: focus1024-wind Date: Fri, 12 Dec 2025 14:58:08 +0800 Subject: [PATCH] INIT --- .gitattributes | 2 + .gitignore | 33 ++++++++ pom.xml | 79 +++++++++++++++++++ .../EnergyStorageSafetyApplication.java | 13 +++ src/main/resources/application.properties | 1 + .../EnergyStorageSafetyApplicationTests.java | 13 +++ 6 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplication.java create mode 100644 src/main/resources/application.properties create mode 100644 src/test/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplicationTests.java diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3b41682 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +/mvnw text eol=lf +*.cmd text eol=crlf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..667aaef --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7a3c9cd --- /dev/null +++ b/pom.xml @@ -0,0 +1,79 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.5.8 + + + com.xapg + energy-storage-safety + 0.0.1-SNAPSHOT + energy-storage-safety + energy-storage-safety + + + + + + + + + + + + + + + 17 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.projectlombok + lombok + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplication.java b/src/main/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplication.java new file mode 100644 index 0000000..76a6f21 --- /dev/null +++ b/src/main/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplication.java @@ -0,0 +1,13 @@ +package com.xapg.energystoragesafety; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class EnergyStorageSafetyApplication { + + public static void main(String[] args) { + SpringApplication.run(EnergyStorageSafetyApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..64f48e3 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=energy-storage-safety diff --git a/src/test/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplicationTests.java b/src/test/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplicationTests.java new file mode 100644 index 0000000..5589f85 --- /dev/null +++ b/src/test/java/com/xapg/energystoragesafety/EnergyStorageSafetyApplicationTests.java @@ -0,0 +1,13 @@ +package com.xapg.energystoragesafety; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class EnergyStorageSafetyApplicationTests { + + @Test + void contextLoads() { + } + +}