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), '')