Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Distributed Computing and Network Fusion System
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WirelessInformationCollaborate
Distributed Computing and Network Fusion System
Commits
04465c2a
Commit
04465c2a
authored
Jun 21, 2020
by
wutu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加README描述
parent
4a8b4f2a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
2 deletions
+57
-2
apps/cnf-app-demo/README.md
apps/cnf-app-demo/README.md
+53
-0
cnf-edge-center/README.md
cnf-edge-center/README.md
+2
-0
cnf-edge-center/pom.xml
cnf-edge-center/pom.xml
+2
-2
No files found.
apps/cnf-app-demo/README.md
0 → 100644
View file @
04465c2a
# 范例项目说明
## 注意
这是一个范例项目,请勿在此项目中添加新的业务代码
## 平台应用创建流程
1.
当需要创建一个平台应用时,需要在apps目录中创建对应的module,以便进行应用的管理。
2.
新建module中必须包含以下依赖:
```
xml
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
top.ninwoo
</groupId>
<artifactId>
cnf-client-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
```
其中的
`spring-boot-starter-web`
可以变更为
`spring-boot-starter`
,具体根据是否有web应用需求而定。
3.
新建module必须包含以下plugin,以防止打Jar包时出现找不到主类的问题:
```
xml
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${springboot.version}
</version>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
```
4.
应用中必须有主类,主类应该符合SpringBoot项目的主类编写方式。
## 警告
*
所有的应用禁止引用除starter之外的平台Jar包,包括:
*
cnf-cloud-center
*
cnf-edge-center
*
cnf-test
*
cnf-cloud-ipservice
*
其他基础工具包
cnf-edge-center/README.md
0 → 100644
View file @
04465c2a
# 边缘承载节点
该Module为
\ No newline at end of file
cnf-edge-center/pom.xml
View file @
04465c2a
...
...
@@ -33,7 +33,7 @@
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<
!--<
dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
...
...
@@ -44,7 +44,7 @@
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
-->
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
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