当前位置:网站首页>ss-3.工程重构
ss-3.工程重构
2022-08-03 05:09:00 【lhorse003】
将公共的模块移植到cloud-api-commons
cloud-api-commons
将公共的模块移植过来
│ pom.xml
│
├─src
│ ├─main
│ │ ├─java
│ │ │ └─com
│ │ │ └─cmk
│ │ │ └─springCloud
│ │ │ └─entities
│ │ │ CommonResult.java
│ │ │ Payment.java
│ │ │
│ │ └─resources
│ └─test
│ └─java
entities
CommonResult.java
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
//404 not_cound
private Integer code;
private String message;
private T data;
public CommonResult(Integer code, String message) {
this(code,message,null);
}
}
Payment.java
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Payment implements Serializable {
private long id;
private String serial;
}
pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.1.0</version>
</dependency>
</dependencies>
order80
├─java
│ └─com
│ └─cmk
│ └─consumerOrder80
│ │ OrderMain80.java //jetbrains://idea/navigate/reference?project=zy2020&path=com/cmk/consumerOrder80/OrderMain80.java:12:1
│ │
│ ├─config
│ │ ApplicationContextConfig.java
│ │
│ ├─controller
│ │ OrderController.java
│ │
│ └─entities [删除掉]
│ CommonResult.java
│ Payment.java
│
└─resources
application.yml
pom.xml
<dependency>
<groupId>org.cmk.springcoloud</groupId>
<artifactId>cloud-api-commons</artifactId>
<version>${project.version}</version>
</dependency>
payment8001
├─main
│ ├─java
│ │ └─com
│ │ └─cmk
│ │ └─springCloud
│ │ │ PaymentMain8001.java --jetbrains://idea/navigate/reference?project=zy2020&path=com/cmk/springCloud/PaymentMain8001.java:12:1
│ │ │
│ │ ├─controller
│ │ │ PaymentController.java
│ │ │
│ │ ├─dao
│ │ │ PaymentDao.java
│ │ │
│ │ ├─entities [删除掉]
│ │ │ CommonResult.java
│ │ │ Payment.java
│ │ │
│ │ └─service
│ │ │ PaymentService.java
│ │ │
│ │ └─impl
│ │ PaymentServiceImpl.java
│ │
│ └─resources
│ │ application.yml
│ │
│ └─mapper
│ PaymentMapper.xml
pom.xml
<dependency>
<groupId>org.cmk.springcoloud</groupId>
<artifactId>cloud-api-commons</artifactId>
<version>${project.version}</version>
</dependency>
边栏推荐
- MySql数据库
- 背压机制
- 2022/08/02 Study Notes (day22) Multithreading
- Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)
- c语言结构体中的冒泡排序
- 业务表解析-余额系统
- UV decomposition of biotin - PEG2 - azide | CAS: 1192802-98-4 biotin connectors
- WinForm的控件二次开发
- Install PostgreSQL on Windows
- typescript41-class类的私有修饰符
猜你喜欢
随机推荐
Exception(异常) 和 Error(错误)区别解析
js实现一个 bind 函数
WebSocket的实际应用
Technology Sharing | How to do assertion verification for xml format in interface automation testing?
1094 谷歌的招聘 (20 分)
Interface test framework combat (1) | Requests and interface request construction
集合框架知识
【Harmony OS】【ARK UI】Date 基本操作
Object类与常用API
接口测试框架实战 | 流程封装与基于加密接口的测试用例设计
Shell条件语句判断
User password encryption tool
背压机制
1095 解码PAT准考证 (25 分)(C语言)
Presto installation and deployment tutorial
js中的闭包
IO process thread -> thread -> day5
探索性测试的概念及方法
接口测试实战| GET/POST 请求区别详解
Odps temporary query can write SQL, turned out to a named?