1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

数据库调整;microservice-api改为microservice-pojo;创建gateway Module

This commit is contained in:
2022-11-05 19:08:28 +08:00
parent 9bd12755fe
commit bbcccb81ca
12 changed files with 354 additions and 370 deletions

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>epp</artifactId>
<groupId>com.cxyxiaomo</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>microservice-pojo</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,22 @@
package com.cxyxiaomo.epp.pojo;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.io.Serializable;
// 数据库关系映射
@Data
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
public class User implements Serializable { // 微服务必须要实现Serializable
private Long id;
private String username;
private String password;
}