commit 7909cbe135cd9b414548b6c857477b745691f4e9
Author: chaos <7676076@qq.com>
Date: Mon Jul 14 16:02:50 2025 +0800
feat: 初始化项目结构和配置- 创建 Maven 项目配置文件 pom.xml
- 添加 Spring Boot 相关依赖
- 创建项目启动类 PortalApplication
- 配置 .gitignore 文件,忽略IDE和系统产生的临时文件
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a91c35d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
+/.idea/
diff --git a/c_portal/pom.xml b/c_portal/pom.xml
new file mode 100644
index 0000000..fc7cb5f
--- /dev/null
+++ b/c_portal/pom.xml
@@ -0,0 +1,33 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ c_portal
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-autoconfigure
+
+
+
+
\ No newline at end of file
diff --git a/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java b/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java
new file mode 100644
index 0000000..9551801
--- /dev/null
+++ b/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java
@@ -0,0 +1,11 @@
+package cn.nopj.chaos.portal;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication(scanBasePackages = "cn.nopj.chaos")
+public class PortalApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(PortalApplication.class,args);
+ }
+}
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..5615fb6
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,37 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+ pom
+
+ c_portal
+
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 3.5.3
+
+
+
+ org.springframework.boot
+ spring-boot-autoconfigure
+ 3.5.3
+
+
+
+
\ No newline at end of file