commit 5819fd5ad40bd14a399a226a2ec3e752e3ae3e53 Author: JiaoTianBo Date: Thu Mar 26 14:08:31 2026 +0800 feat(core): 初始化Spring Boot项目框架 - 添加Maven配置文件,定义项目基本信息和依赖 - 新增主应用程序入口类,启动Spring Boot应用 - 新增单元测试类,验证Spring上下文加载 - 配置application.yaml,设置应用名称 - 添加标准开发环境.gitignore,忽略IDE和构建文件目录 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/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..c595b00 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,3 @@ +wrapperVersion=3.3.4 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.14/apache-maven-3.9.14-bin.zip diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..81b82a4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,44 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.5.12 + + + cn.yinlihupo + ylhp-AIProjectManager + 0.0.1-SNAPSHOT + ylhp-AIProjectManager + ylhp-AIProjectManager + + + 17 + + + + org.springframework.boot + spring-boot-starter + + + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/main/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplication.java b/src/main/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplication.java new file mode 100644 index 0000000..72c7066 --- /dev/null +++ b/src/main/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplication.java @@ -0,0 +1,13 @@ +package cn.yinlihupo.ylhpaiprojectmanager; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class YlhpAiProjectManagerApplication { + + public static void main(String[] args) { + SpringApplication.run(YlhpAiProjectManagerApplication.class, args); + } + +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..7108c1f --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,3 @@ +spring: + application: + name: ylhp-AIProjectManager diff --git a/src/test/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplicationTests.java b/src/test/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplicationTests.java new file mode 100644 index 0000000..1e1301b --- /dev/null +++ b/src/test/java/cn/yinlihupo/ylhpaiprojectmanager/YlhpAiProjectManagerApplicationTests.java @@ -0,0 +1,13 @@ +package cn.yinlihupo.ylhpaiprojectmanager; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class YlhpAiProjectManagerApplicationTests { + + @Test + void contextLoads() { + } + +}