Skip to content

Commit 4145127

Browse files
committed
优化代码
1 parent 00c7074 commit 4145127

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

spring-cloud-gray-client-netflix/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
<groupId>org.springframework.cloud</groupId>
5151
<artifactId>spring-cloud-netflix-eureka-client</artifactId>
5252
</dependency>
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-configuration-processor</artifactId>
56+
<optional>true</optional>
57+
</dependency>
5358
<dependency>
5459
<groupId>com.netflix.eureka</groupId>
5560
<artifactId>eureka-client</artifactId>

spring-cloud-gray-server/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
<artifactId>spring-boot-starter-test</artifactId>
2929
<scope>provided</scope>
3030
</dependency>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-configuration-processor</artifactId>
34+
<optional>true</optional>
35+
</dependency>
3136
<dependency>
3237
<groupId>org.springframework.cloud</groupId>
3338
<artifactId>spring-cloud-starter-eureka</artifactId>

spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/dao/model/GrayInstanceDO.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
public class GrayInstanceDO {
1515
@Id
1616
@Column(length = 64)
17-
@GeneratedValue(strategy = GenerationType.IDENTITY)
1817
private String instanceId;
1918
@Column(length = 32)
2019
private String serviceId;

spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/dao/model/GrayServiceDO.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import lombok.*;
44

5-
import javax.persistence.*;
5+
import javax.persistence.Column;
6+
import javax.persistence.Entity;
7+
import javax.persistence.Id;
8+
import javax.persistence.Table;
69

710

811
@Setter
@@ -16,7 +19,6 @@ public class GrayServiceDO {
1619

1720
@Id
1821
@Column(length = 32)
19-
@GeneratedValue(strategy = GenerationType.IDENTITY)
2022
private String serviceId;
2123
@Column(length = 64)
2224
private String serviceName;

0 commit comments

Comments
 (0)