Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
middleware-automatic
Commits
77878af2
You need to sign in or sign up before continuing.
Commit
77878af2
authored
Apr 07, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023年04月07日 配置文件切换,readme文档提交
parent
9f5aab04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
2 deletions
+81
-2
README.md
+78
-0
middleware-automatic-center-server/src/main/resources/application.properties
+3
-2
No files found.
README.md
0 → 100644
View file @
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
middleware-automatic-center-server/src/main/resources/application.properties
View file @
77878af2
#
spring.profiles.active=prod
spring.profiles.active
=
prod
spring.profiles.active
=
dev
#
spring.profiles.active=dev
#
spring.profiles.active
=
local
#
spring.profiles.active
=
local
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment