Merge branch 'master' of http://139.196.40.6:2019/kdpublic/kdayun-template
commit
2c37775502
103
README.md
103
README.md
|
@ -1 +1,102 @@
|
||||||
# 后台二开模板工程
|
# 二开后台环境搭建
|
||||||
|
|
||||||
|
二开后台环境的搭建主要用于平台后端平台功能无法满足的时候使用. 可以扩展以jar包的方式扩展后台的功能.
|
||||||
|
|
||||||
|
## 工具准备
|
||||||
|
|
||||||
|
- eclipse
|
||||||
|
|
||||||
|
<http://www.eclipse.org/downloads/>
|
||||||
|
|
||||||
|
- jdk
|
||||||
|
|
||||||
|
<https://www.oracle.com/java/technologies/downloads/archive/>
|
||||||
|
|
||||||
|
建议版本: jdk8u311
|
||||||
|
|
||||||
|
## 下载后台二开模板工程
|
||||||
|
|
||||||
|
<http://develop.kdayun.com:2019/kdpublic/kdayun-template/-/archive/master/kdayun-template-master.zip>
|
||||||
|
<http://139.196.40.6:2019/kdpublic/kdayun-template.git>
|
||||||
|
|
||||||
|
## eclipse导入maven工程
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/8569422a757a340c4890b4f75c8c87cf.4696a556.png)
|
||||||
|
|
||||||
|
## 修改kdayun-demo工程的名称成项目的名称
|
||||||
|
|
||||||
|
- 修改完名称后入口工程内的pom.xml也要同时更新
|
||||||
|
|
||||||
|
## 配置jdk
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/f59fac45fe0cc9426cc5af62c46b66a8.d4a395d5.png)
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/78c8c8ba1cee01760373bc37614e2c44.0e50d136.png)
|
||||||
|
|
||||||
|
## 设置maven的私有库地址
|
||||||
|
|
||||||
|
maven的版本建议:maven 3.2.5
|
||||||
|
|
||||||
|
<https://dlcdn.apache.org/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip>
|
||||||
|
|
||||||
|
具体maven配置过程依次如下图:
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/8f223e55af2def3065bc5fb6b566a024.2e4a41b5.png)
|
||||||
|
|
||||||
|
``` xml
|
||||||
|
<server\>
|
||||||
|
<id\>kdayun-releases\</id\>
|
||||||
|
<username\>kdayun-community</username\>
|
||||||
|
<password\>kdayun.com</password\>
|
||||||
|
</server\>
|
||||||
|
<server\>
|
||||||
|
<id\>kdayun-snapshots\</id\>
|
||||||
|
<username\>kdayun-community</username\>
|
||||||
|
<password\>kdayun.com</password\>
|
||||||
|
</server\>
|
||||||
|
<mirror\>
|
||||||
|
<id\>kdayun-releases\</id\>
|
||||||
|
<name\>kdayun maven\</name\>
|
||||||
|
<url\>http://develop.kdayun.com:8081/repository/maven-public/</url\>
|
||||||
|
<mirrorOf\>central\</mirrorOf\>
|
||||||
|
</mirror\>
|
||||||
|
```
|
||||||
|
**如果需要发布到快搭私库需要跟快搭客服联系**
|
||||||
|
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/d46c5206206069c73635dafefcc53a50.b338879a.png)
|
||||||
|
|
||||||
|
![]http://help.kdayun.com/static/6b34f3c63e1e4c43c5b50624f70056a3.2eafcdf8.png).
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/87955492f52311f1785643590ecff44a.f4ae1181.png)
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/309b6879ce30c6909cb1b1d087939523.8caae13e.png)
|
||||||
|
|
||||||
|
### 检查maven的配置是否生效
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/854766e0b33ef6296ca49dd23f162357.9030ccc4.png)
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/726961d83c0ba63296f6399a0108a3ef.dea1fbce.png)
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/2724fbe1996a240b860e741017e787f8.a27c4e2c.png)
|
||||||
|
|
||||||
|
### 刷新mave依赖
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/d2c73a9572696af11ea4c9e13976c99d.eb072c22.png)
|
||||||
|
|
||||||
|
## 入口jar工程增加二开工程jar的依赖
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/663a4f21a3bb7e5f248e263794032d53.e3f5b83a.png)
|
||||||
|
|
||||||
|
## 模板工作目录说明
|
||||||
|
|
||||||
|
![](http://help.kdayun.com/static/862ff6113e9c915693b4a391d9ae5132.27e1363d.png)
|
||||||
|
|
||||||
|
## 发布
|
||||||
|
|
||||||
|
发布只需要利用平台的更新打包把kdayun-app.jar,
|
||||||
|
kdayun-demo.jar打包生成更新包并上传服务器执行更新.
|
||||||
|
|
||||||
|
|
||||||
|
## **注意事项**
|
||||||
|
1. maven,jdk,模板工程的目录不要放在中文或者类似D:\Program Files\ 这种带有空格目录下
|
Loading…
Reference in New Issue