Skip to content

Commit a5075a8

Browse files
committed
remove leaf
1 parent 8419744 commit a5075a8

31 files changed

+4
-1177
lines changed

pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<packaging>pom</packaging>
5-
<modules>
6-
<module>springboot-starter-leaf</module>
7-
</modules>
85
<parent>
96
<groupId>org.springframework.boot</groupId>
107
<artifactId>spring-boot-starter-parent</artifactId>
@@ -124,12 +121,6 @@
124121
<version>${codingapi.framework.version}</version>
125122
</dependency>
126123

127-
<dependency>
128-
<groupId>com.codingapi.springboot</groupId>
129-
<artifactId>springboot-starter-leaf</artifactId>
130-
<version>${codingapi.framework.version}</version>
131-
</dependency>
132-
133124
<dependency>
134125
<groupId>commons-dbutils</groupId>
135126
<artifactId>commons-dbutils</artifactId>

springboot-example/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
<artifactId>springboot-starter-security-jwt</artifactId>
3636
</dependency>
3737

38-
<dependency>
39-
<groupId>com.codingapi.springboot</groupId>
40-
<artifactId>springboot-starter-leaf</artifactId>
41-
</dependency>
4238

4339
<dependency>
4440
<groupId>org.springframework.boot</groupId>

springboot-example/src/main/java/com/codingapi/springboot/example/ExampleApplication.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.codingapi.springboot.example;
22

3-
import com.codingapi.springboot.leaf.EnableLeaf;
43
import org.springframework.boot.SpringApplication;
54
import org.springframework.boot.autoconfigure.SpringBootApplication;
65
import org.springframework.context.annotation.Bean;
@@ -10,7 +9,6 @@
109
import java.util.Locale;
1110

1211
@SpringBootApplication
13-
@EnableLeaf
1412
public class ExampleApplication {
1513

1614
public static void main(String[] args) {

springboot-example/src/main/java/com/codingapi/springboot/example/domain/Demo.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
import com.codingapi.springboot.example.event.DemoNameChangeEvent;
44
import com.codingapi.springboot.framework.event.EventPusher;
5-
import com.codingapi.springboot.leaf.LeafIdGenerate;
65
import lombok.Getter;
76
import lombok.NoArgsConstructor;
87
import lombok.Setter;
98
import lombok.ToString;
109

1110
import javax.persistence.Entity;
11+
import javax.persistence.GeneratedValue;
12+
import javax.persistence.GenerationType;
1213
import javax.persistence.Id;
1314

1415
/**
@@ -20,16 +21,16 @@
2021
@NoArgsConstructor
2122
@ToString
2223
@Entity(name = "t_demo")
23-
public class Demo implements LeafIdGenerate {
24+
public class Demo {
2425

2526
@Id
27+
@GeneratedValue(strategy = GenerationType.AUTO)
2628
private Integer id;
2729

2830
private String name;
2931

3032
public Demo(String name) {
3133
this.name = name;
32-
this.id = generateIntId();
3334
}
3435

3536
public void changeName(String name){

springboot-starter-leaf/pom.xml

Lines changed: 0 additions & 40 deletions
This file was deleted.

springboot-starter-leaf/src/main/java/com/codingapi/springboot/leaf/AutoConfiguration.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

springboot-starter-leaf/src/main/java/com/codingapi/springboot/leaf/AutoConfigurationImportSelector.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

springboot-starter-leaf/src/main/java/com/codingapi/springboot/leaf/EnableLeaf.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

springboot-starter-leaf/src/main/java/com/codingapi/springboot/leaf/IDGen.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

springboot-starter-leaf/src/main/java/com/codingapi/springboot/leaf/LeafClient.java

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)