Commit 1db93e8f by shentao

Merge branch 'feature' into 'release'

2023/04/07 名字统一 pom文件打包配置,配置文件切换,readme文档提交

See merge request !1
parents bce31c9d 77878af2
# 自动化中间件服务
## 背景
因原有自动化中间件自动标注功能单台机器有计算瓶颈,现将自动标注功能拆分,采用sever-son模式提供自动标注服务。
## 项目文档
### 服务依赖
有两种方式连接服务端。
1. 导入自动装配依赖
maven导入
```xml
<dependency>
<groupId>com.zhiwei</groupId>
<artifactId>middleware-automatic-center-autoconfigure</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
```
配置文件
```properties
auto.matic.center.client.consumer.group=zhiwei-automatic
auto.matic.center.client.registry.address=zookeeper://192.168.0.11:2181?backup=192.168.0.30:2181,192.168.0.35:2181
auto.matic.center.client.application.name=zhiwei-auth-maic-web-local
```
项目启动将会自动装配到spring
2. 导入client依赖
maven导入
```xml
<dependency>
<groupId>com.zhiwei</groupId>
<artifactId>middleware-automatic-center</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
```
手动实例化
```java
new AutoMaticClient(AutoMaticClientFactory.createInstance(AutoMaticService.class, "zhiwei-auth-maic-web-local", "zookeeper://192.168.0.11:2181?backup=192.168.0.30:2181,192.168.0.35:2181",
"zhiwei-automatic"));
```
## 项目运行的服务器及目录及其他信息
> 项目位置: 暂无
> **服务器地址**:
> 内网地址:
> 外网地址:
>
> **端口号**:7778
> **服务数据库地址**:
>
> Mongo: 202.107.192.94:17150/qbjc(外)192.168.0.150:27017/qbjc(内)
>
> Redis: 115.236.59.91:7373(外)192.168.0.39:7373(内) 4号库
>
> Zookeeper: 未使用
> **依赖服务**:无
\ No newline at end of file
......@@ -207,7 +207,7 @@
</dependencies>
<build>
<finalName>middleware-automatic-server</finalName>
<finalName>middleware-automatic-center-server</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
......
#spring.profiles.active=prod
spring.profiles.active=prod
#spring.profiles.active=dev
spring.profiles.active=local
\ No newline at end of file
#spring.profiles.active=local
\ No newline at end of file
......@@ -258,7 +258,7 @@
</dependencies>
<build>
<finalName>middleware-automatic-son</finalName>
<finalName>middleware-automatic-center-son</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
......
#spring.profiles.active=prod
spring.profiles.active=prod
#spring.profiles.active=dev
spring.profiles.active=local
\ No newline at end of file
#spring.profiles.active=local
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment