You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
|
1 month ago
|
当前版本:v0.2.1
|
||
|
|
|
||
|
|
|
||
|
|
# 目录结构如下
|
||
|
|
|
||
|
|
│
|
||
|
|
├─data-center-business-common
|
||
|
|
│
|
||
|
|
├─data-center-business-controller
|
||
|
|
│
|
||
|
|
│─data-center-business-dao
|
||
|
|
│ ├─java
|
||
|
|
│ │ ├─auto----Mybatis-Generator自动生成的持久层接口
|
||
|
|
│ │ └─ex------自定义接口, 继承上面对应的auto
|
||
|
|
│ ├─resources
|
||
|
|
│ │ ├─mappers
|
||
|
|
│ │ │ ├─auto----Mybatis-Generator自动生成的映射sql文件, 对应上面的auto接口
|
||
|
|
│ │ │ └─ex------自定义sql, 对应上面的ex接口
|
||
|
|
│ │ └─mybatis-generator
|
||
|
|
│ │ └─generatorConfig.xml-----配置数据库表,配置完后双击data-center-business-dao下的runGenerator.bat, Mybatis-Generator自动构建实体类、持久层接口等
|
||
|
|
│ └─runGenerator.bat
|
||
|
|
│
|
||
|
|
├─data-center-business-model
|
||
|
|
│ ├─dto
|
||
|
|
│ ├─entity
|
||
|
|
│ ├─model--------Mybatis-Generator自动生成的实体类
|
||
|
|
│ └─vo
|
||
|
|
│
|
||
|
|
├─data-center-business-service
|
||
|
|
│
|
||
|
|
├─data-center-business-util 工具类
|
||
|
|
│
|
||
|
|
└─document---------一些说明文档、脚本、部署sql等等
|
||
|
|
|
||
|
|
|
||
|
|
# swagger接口地址
|
||
|
|
+ http://127.0.0.1:20008/swagger-ui.html
|
||
|
|
|
||
|
|
### 开发时,可注释掉controller类上的@AccessRequired注解,不用进行鉴权,省得每次都要登录获取token
|
||
|
|
|
||
|
|
# 打包推送到docker
|
||
|
|
右击package命令,Modify run configuration,然后修改Run为下面指令。博啊村后在 Run Configurations中可以看到和执行。
|
||
|
|
推送到测试AWS服务器
|
||
|
|
package -Pdocker-test
|
||
|
|
推送到正式AWS服务器
|
||
|
|
package -Pdocker-production
|