server_five_liuyunhu
lijiayao 2024-04-02 16:57:04 +08:00
parent 5148ae5e14
commit 422ffa1f32
14 changed files with 191 additions and 4 deletions

View File

@ -0,0 +1,26 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.couplet</groupId>
<artifactId>couplet-analyze-incident</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>couplet-incident-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.couplet</groupId>
<artifactId>couplet-incident-remote</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,20 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.couplet</groupId>
<artifactId>couplet-analyze-incident</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>couplet-incident-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,19 @@
package com.couplet.analyze.incident.server.controller;
import com.couplet.common.core.web.controller.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
*
*/
@RestController
@RequestMapping("/incident")
public class IncidentController extends BaseController {
}

View File

@ -0,0 +1,13 @@
package com.couplet.analyze.incident.server.service;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
* @Description:
*/
public interface IncidentService {
}

View File

@ -0,0 +1,13 @@
package com.couplet.analyze.incident.server.service.impl;
import com.couplet.analyze.incident.server.service.IncidentService;
import org.springframework.stereotype.Service;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
* @Description:
*/
@Service("breakdown")
public class BreakdownServiceImpl implements IncidentService {
}

View File

@ -0,0 +1,17 @@
package com.couplet.analyze.incident.server.service.impl;
import com.couplet.analyze.incident.server.service.IncidentService;
import org.springframework.stereotype.Service;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
* @Description:
*/
@Service("electronic-fence")
public class ElectronicFenceServiceImpl implements IncidentService {
}

View File

@ -0,0 +1,13 @@
package com.couplet.analyze.incident.server.service.impl;
import com.couplet.analyze.incident.server.service.IncidentService;
import org.springframework.stereotype.Service;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
* @Description:
*/
@Service("real-time-data")
public class RealTimeDataServiceImpl implements IncidentService {
}

View File

@ -0,0 +1,13 @@
package com.couplet.analyze.incident.server.service.impl;
import com.couplet.analyze.incident.server.service.IncidentService;
import org.springframework.stereotype.Service;
/**
* @Author: LiJiaYao
* @Date: 2024/4/2
* @Description:
*/
@Service("stored-event")
public class StoredEventServiceImpl implements IncidentService {
}

View File

@ -0,0 +1,31 @@
# Tomcat
server:
port: 9999
# Spring
spring:
application:
# 应用名称
name: couplet-incident
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
main:
allow-bean-definition-overriding: true
logging:
level:
com.couplet.trouble.mapper: DEBUG

View File

@ -10,6 +10,11 @@
</parent>
<artifactId>couplet-analyze-incident</artifactId>
<packaging>pom</packaging>
<modules>
<module>couplet-incident-remote</module>
<module>couplet-incident-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>

View File

@ -14,6 +14,7 @@
<modules>
<module>couplet-analyze-incident</module>
<module>couplet-analyze-msg</module>
<module>couplet-analyze-incident/couplet-incident-server</module>
</modules>
<properties>

View File

@ -16,11 +16,9 @@ spring:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
namespace: 172469
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
namespace: 172469
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -4,8 +4,7 @@ server:
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: couplet-system

19
pom.xml
View File

@ -260,6 +260,25 @@
<version>${couplet.version}</version>
</dependency>
<!-- 事件系统远程调用 -->
<dependency>
<groupId>com.couplet</groupId>
<artifactId>couplet-incident-remote</artifactId>
<version>${couplet.version}</version>
</dependency>
<!-- 事件系统公共依赖 -->
<dependency>
<groupId>com.couplet</groupId>
<artifactId>couplet-incident-common</artifactId>
<version>${couplet.version}</version>
</dependency>
<!-- 事件系统核心模块 -->
<dependency>
<groupId>com.couplet</groupId>
<artifactId>couplet-incident-server</artifactId>
<version>${couplet.version}</version>
</dependency>
</dependencies>
</dependencyManagement>