From 4893183d1e4ba8d5bddd53b18fede0b9e5252070 Mon Sep 17 00:00:00 2001 From: MagicJson Date: Sat, 7 Sep 2024 20:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minigame-demo-ddd/pom.xml | 6 --- .../src/test/java/cc/magicjson/AppTest.java | 38 --------------- .../PersonSpringBootStarterApplication.java | 13 ----- .../spring/boot/web/PersonController.java | 47 ------------------- .../main/resources/application.properties.bak | 5 -- .../LobeChat.yml | 0 6 files changed, 109 deletions(-) delete mode 100644 minigame-demo-ddd/src/test/java/cc/magicjson/AppTest.java delete mode 100644 person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/PersonSpringBootStarterApplication.java delete mode 100644 person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/web/PersonController.java delete mode 100644 person-spring-boot-starter/src/main/resources/application.properties.bak rename {demo/src/main/resources => uml-adapter-architecture}/LobeChat.yml (100%) diff --git a/minigame-demo-ddd/pom.xml b/minigame-demo-ddd/pom.xml index 7904326..245c8ec 100644 --- a/minigame-demo-ddd/pom.xml +++ b/minigame-demo-ddd/pom.xml @@ -38,11 +38,5 @@ lombok true - - junit - junit - 3.8.1 - test - diff --git a/minigame-demo-ddd/src/test/java/cc/magicjson/AppTest.java b/minigame-demo-ddd/src/test/java/cc/magicjson/AppTest.java deleted file mode 100644 index 5f05c66..0000000 --- a/minigame-demo-ddd/src/test/java/cc/magicjson/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package cc.magicjson; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/PersonSpringBootStarterApplication.java b/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/PersonSpringBootStarterApplication.java deleted file mode 100644 index e261cdf..0000000 --- a/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/PersonSpringBootStarterApplication.java +++ /dev/null @@ -1,13 +0,0 @@ -//package cc.magicjson.spring.boot; -// -//import org.springframework.boot.SpringApplication; -//import org.springframework.boot.autoconfigure.SpringBootApplication; -// -//@SpringBootApplication -//public class PersonSpringBootStarterApplication { -// -// public static void main(String[] args) { -// SpringApplication.run(PersonSpringBootStarterApplication.class, args); -// } -// -//} diff --git a/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/web/PersonController.java b/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/web/PersonController.java deleted file mode 100644 index a07ec20..0000000 --- a/person-spring-boot-starter/src/main/java/cc/magicjson/spring/boot/web/PersonController.java +++ /dev/null @@ -1,47 +0,0 @@ -//package cc.magicjson.spring.boot.web; -// -//import cc.magicjson.spring.boot.domain.Person; -//import org.springframework.beans.factory.annotation.Autowired; -//import org.springframework.util.StringUtils; -//import org.springframework.web.bind.annotation.GetMapping; -//import org.springframework.web.bind.annotation.PathVariable; -//import org.springframework.web.bind.annotation.RestController; -// -//import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; -// -///** -// * {@link} -// * -// * @author MagicJson -// * @since 1.0.0 -// */ -//@RestController -//public class PersonController { -// private final Person person; -// -// @Autowired -// private PersonController(Person person){ -// this.person = person; -// } -// -// @GetMapping(value = "/person/{id}",produces = APPLICATION_JSON_VALUE) -// public Person person(@PathVariable("id") String id){ -// if(StringUtils.hasLength(id)){ -// person.setId(Long.parseLong(id)); -// } -// return person; -// } -// -// @GetMapping(value = "/person") -// public Person person(){ -// return person; -// } -// -// @GetMapping(value = "/hello") -// public String hello(){ -// return "hello"; -// } -// -// -// -//} diff --git a/person-spring-boot-starter/src/main/resources/application.properties.bak b/person-spring-boot-starter/src/main/resources/application.properties.bak deleted file mode 100644 index dc20775..0000000 --- a/person-spring-boot-starter/src/main/resources/application.properties.bak +++ /dev/null @@ -1,5 +0,0 @@ -spring.application.name=person-spring-boot-starter -person.id=1 -person.name=magicjson -person.age=25 -person.enable=true \ No newline at end of file diff --git a/demo/src/main/resources/LobeChat.yml b/uml-adapter-architecture/LobeChat.yml similarity index 100% rename from demo/src/main/resources/LobeChat.yml rename to uml-adapter-architecture/LobeChat.yml -- Gitee