feat(core): 初始化Spring Boot项目框架

- 添加Maven配置文件,定义项目基本信息和依赖
- 新增主应用程序入口类,启动Spring Boot应用
- 新增单元测试类,验证Spring上下文加载
- 配置application.yaml,设置应用名称
- 添加标准开发环境.gitignore,忽略IDE和构建文件目录
This commit is contained in:
2026-03-26 14:08:31 +08:00
commit 5819fd5ad4
6 changed files with 109 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@@ -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/

3
.mvn/wrapper/maven-wrapper.properties vendored Normal file
View File

@@ -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

44
pom.xml Normal file
View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.12</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>cn.yinlihupo</groupId>
<artifactId>ylhp-AIProjectManager</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ylhp-AIProjectManager</name>
<description>ylhp-AIProjectManager</description>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@@ -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);
}
}

View File

@@ -0,0 +1,3 @@
spring:
application:
name: ylhp-AIProjectManager

View File

@@ -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() {
}
}