From f2e6cc67f3f0d3f30af9ddde071c48ab1818c39f Mon Sep 17 00:00:00 2001
From: zhengsl <13910913995@163.com>
Date: Thu, 20 Nov 2025 16:42:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 11 +++++++++++
business-css/pom.xml | 7 ++++++-
.../business/css/controller/HealthController.java | 15 +++++++++++++++
framework/frontend/vite.config.ts | 2 +-
4 files changed, 33 insertions(+), 2 deletions(-)
create mode 100644 business-css/src/main/java/com/yfd/business/css/controller/HealthController.java
diff --git a/.gitignore b/.gitignore
index 454659a..bb9f0fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,14 @@ framework/src/main/resources/static/assets/sortable.esm-616533ae.js
framework/src/main/resources/static/assets/tagsView-6df0ea3e.js
framework/src/main/resources/static/assets/uploader-0562c8e7.js
framework/src/main/resources/static/assets/uploader-4183de44.css
+business-css/target/business-css-1.0-SNAPSHOT.jar
+business-css/target/business-css-1.0-SNAPSHOT.jar.original
+business-css/target/classes/com/yfd/business/css/CriticalScenarioApplication.class
+business-css/target/classes/com/yfd/business/css/controller/HealthController.class
+business-css/target/classes/com/yfd/business/css/controller/SimulationController.class
+business-css/target/classes/com/yfd/business/css/model/SimulationRequest.class
+business-css/target/classes/com/yfd/business/css/model/SimulationResult.class
+business-css/target/classes/com/yfd/business/css/service/SimulationService.class
+business-css/target/classes/com/yfd/business/css/service/impl/SimulationServiceImpl.class
+business-css/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+business-css/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
diff --git a/business-css/pom.xml b/business-css/pom.xml
index ec5ccb9..aea4863 100644
--- a/business-css/pom.xml
+++ b/business-css/pom.xml
@@ -47,6 +47,11 @@
mybatis-spring-boot-starter
3.0.3
+
+ org.mybatis
+ mybatis
+ 3.5.16
+
com.mysql
mysql-connector-j
@@ -78,4 +83,4 @@
-
\ No newline at end of file
+
diff --git a/business-css/src/main/java/com/yfd/business/css/controller/HealthController.java b/business-css/src/main/java/com/yfd/business/css/controller/HealthController.java
new file mode 100644
index 0000000..e0e6e18
--- /dev/null
+++ b/business-css/src/main/java/com/yfd/business/css/controller/HealthController.java
@@ -0,0 +1,15 @@
+package com.yfd.business.css.controller;
+
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+public class HealthController {
+
+ @GetMapping("/ping")
+ public ResponseEntity ping() {
+ return ResponseEntity.ok("ok");
+ }
+}
+
diff --git a/framework/frontend/vite.config.ts b/framework/frontend/vite.config.ts
index e458fbb..12fe4f8 100644
--- a/framework/frontend/vite.config.ts
+++ b/framework/frontend/vite.config.ts
@@ -27,7 +27,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
// 线上API地址
//target: 'http://192.168.1.20:8090/',
// 本地API地址
- target: 'http://localhost:8093',
+ target: 'http://localhost:8082',
changeOrigin: true,
rewrite: path =>
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')