Update README.md
parent
22bb29d3d9
commit
1c775358b6
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工程
|
||||
|
||||
![](./media/8569422a757a340c4890b4f75c8c87cf.png)
|
||||
|
||||
## 修改kdayun-demo工程的名称成项目的名称
|
||||
|
||||
- 修改完名称后入口工程内的pom.xml也要同时更新
|
||||
|
||||
## 配置jdk
|
||||
|
||||
![](./media/f59fac45fe0cc9426cc5af62c46b66a8.png)
|
||||
|
||||
![](./media/78c8c8ba1cee01760373bc37614e2c44.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配置过程依次如下图:
|
||||
|
||||
![](./media/8f223e55af2def3065bc5fb6b566a024.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\>
|
||||
```
|
||||
**如果需要发布到快搭私库需要跟快搭客服联系**
|
||||
|
||||
|
||||
![](./media/d46c5206206069c73635dafefcc53a50.png)
|
||||
|
||||
![](./media/6b34f3c63e1e4c43c5b50624f70056a3.png).
|
||||
|
||||
![](./media/87955492f52311f1785643590ecff44a.png)
|
||||
|
||||
![](./media/309b6879ce30c6909cb1b1d087939523.png)
|
||||
|
||||
### 检查maven的配置是否生效
|
||||
|
||||
![](./media/854766e0b33ef6296ca49dd23f162357.png)
|
||||
|
||||
![](./media/726961d83c0ba63296f6399a0108a3ef.png)
|
||||
|
||||
![](./media/2724fbe1996a240b860e741017e787f8.png)
|
||||
|
||||
### 刷新mave依赖
|
||||
|
||||
![](./media/d2c73a9572696af11ea4c9e13976c99d.png)
|
||||
|
||||
## 入口jar工程增加二开工程jar的依赖
|
||||
|
||||
![](./media/663a4f21a3bb7e5f248e263794032d53.png)
|
||||
|
||||
## 模板工作目录说明
|
||||
|
||||
![](./media/862ff6113e9c915693b4a391d9ae5132.png)
|
||||
|
||||
## 发布
|
||||
|
||||
发布只需要利用平台的更新打包把kdayun-app.jar,
|
||||
kdayun-demo.jar打包生成更新包并上传服务器执行更新.
|
||||
|
||||
|
||||
## **注意事项**
|
||||
1. maven,jdk,模板工程的目录不要放在中文或者类似D:\Program Files\ 这种带有空格目录下
|
Loading…
Reference in New Issue