From 7f2848c82c30d9bc9ebf5b0abd14e5b912ec840a Mon Sep 17 00:00:00 2001 From: zhangdaiscott <zhangdaiscott@163.com> Date: Sat, 6 Aug 2022 15:28:31 +0800 Subject: [PATCH] demo项目微服务启动配置,删除 --- jeecg-boot/jeecg-boot-module-demo/pom.xml | 26 -------------------------- jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/JeecgDemoCloudApplication.java | 35 ----------------------------------- jeecg-boot/jeecg-boot-module-demo/src/main/resources/application.yml | 5 ----- 3 files changed, 0 insertions(+), 66 deletions(-) delete mode 100644 jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/JeecgDemoCloudApplication.java delete mode 100644 jeecg-boot/jeecg-boot-module-demo/src/main/resources/application.yml diff --git a/jeecg-boot/jeecg-boot-module-demo/pom.xml b/jeecg-boot/jeecg-boot-module-demo/pom.xml index fb32690..30dad6a 100644 --- a/jeecg-boot/jeecg-boot-module-demo/pom.xml +++ b/jeecg-boot/jeecg-boot-module-demo/pom.xml @@ -18,30 +18,4 @@ </dependency> </dependencies> - <profiles> - <profile> - <id>SpringCloud</id> - <!-- 引入springboot独立启动--> - <build> - <plugins> - <plugin> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-maven-plugin</artifactId> - </plugin> - </plugins> - </build> - <!-- 引入微服务Starter依赖 --> - <dependencies> - <dependency> - <groupId>org.jeecgframework.boot</groupId> - <artifactId>jeecg-boot-starter-cloud</artifactId> - </dependency> - <dependency> - <groupId>org.jeecgframework.boot</groupId> - <artifactId>jeecg-boot-starter-job</artifactId> - </dependency> - </dependencies> - </profile> - </profiles> - </project> \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/JeecgDemoCloudApplication.java b/jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/JeecgDemoCloudApplication.java deleted file mode 100644 index 696db87..0000000 --- a/jeecg-boot/jeecg-boot-module-demo/src/main/java/org/jeecg/JeecgDemoCloudApplication.java +++ /dev/null @@ -1,35 +0,0 @@ -//package org.jeecg; -// -//import org.jeecg.common.base.BaseMap; -//import org.jeecg.common.constant.GlobalConstants; -//import org.springframework.beans.factory.annotation.Autowired; -//import org.springframework.boot.CommandLineRunner; -//import org.springframework.boot.SpringApplication; -//import org.springframework.boot.autoconfigure.SpringBootApplication; -//import org.springframework.cloud.openfeign.EnableFeignClients; -//import org.springframework.data.redis.core.RedisTemplate; -// -//@SpringBootApplication -//@EnableFeignClients -//public class JeecgDemoCloudApplication implements CommandLineRunner { -// @Autowired -// private RedisTemplate<String, Object> redisTemplate; -// -// public static void main(String[] args) { -// SpringApplication.run(JeecgDemoCloudApplication.class, args); -// } -// -// /** -// * 启动的时候,触发下gateway网关刷新 -// * -// * 解决: 先启动gateway后启动服务,Swagger接口文档访问不通的问题 -// * @param args -// */ -// @Override -// public void run(String... args) { -// BaseMap params = new BaseMap(); -// params.put(GlobalConstants.HANDLER_NAME, GlobalConstants.LODER_ROUDER_HANDLER); -// //刷新网关 -// redisTemplate.convertAndSend(GlobalConstants.REDIS_TOPIC_NAME, params); -// } -//} diff --git a/jeecg-boot/jeecg-boot-module-demo/src/main/resources/application.yml b/jeecg-boot/jeecg-boot-module-demo/src/main/resources/application.yml deleted file mode 100644 index d2d16d6..0000000 --- a/jeecg-boot/jeecg-boot-module-demo/src/main/resources/application.yml +++ /dev/null @@ -1,5 +0,0 @@ -server: - port: 7002 -spring: - application: - name: jeecg-demo \ No newline at end of file -- libgit2 0.22.2