更新 Cloud 版本的代码生成器(强劲生成,提供微服务模块生成和增删改查生成,无需手写一行代码)
This commit is contained in:
@@ -52,10 +52,10 @@ spring:
|
||||
config:
|
||||
server-addr: 10.0.2.15:8848
|
||||
file-extension: yml
|
||||
group: jeesite-cloud-42
|
||||
group: jeesite-cloud-43
|
||||
ext-config:
|
||||
- data-id: application.yml
|
||||
group: jeesite-cloud-42
|
||||
group: jeesite-cloud-43
|
||||
]]>
|
||||
</content>
|
||||
</template>
|
||||
@@ -12,9 +12,9 @@
|
||||
|
||||
<parent>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-cloud-parent</artifactId>
|
||||
<artifactId>jeesite-cloud-parent-web</artifactId>
|
||||
<version>${jeesiteVersion}-SNAPSHOT</version>
|
||||
<relativePath>../../../parent/pom.xml</relativePath>
|
||||
<relativePath>../../../parent/web/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>jeesite-cloud-module-${module.moduleCode}</artifactId>
|
||||
@@ -39,41 +39,18 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 服务发现 -->
|
||||
<!-- <dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
||||
</dependency> -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 配置中心 -->
|
||||
<!-- <dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-config</artifactId>
|
||||
</dependency> -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 链路追踪服务 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-zipkin</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 在线文档 -->
|
||||
<!-- 核心模块 -->
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-module-swagger</artifactId>
|
||||
<artifactId>jeesite-cloud-module-core-client</artifactId>
|
||||
<version>\${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- ${module.moduleName}模块 -->
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-cloud-module-${module.moduleCode}-client</artifactId>
|
||||
<version>\${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
@@ -89,19 +66,6 @@
|
||||
<version>\${project.parent.version}</version>
|
||||
</dependency> -->
|
||||
|
||||
<!-- 核心模块 -->
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-cloud-module-core-client</artifactId>
|
||||
<version>\${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-cloud-module-${module.moduleCode}-client</artifactId>
|
||||
<version>\${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 业务流程
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
@@ -115,15 +79,6 @@
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency> -->
|
||||
|
||||
<!-- 自定义jar依赖包演示
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>test-core</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>\${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar</systemPath>
|
||||
</dependency> -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -10,9 +10,10 @@
|
||||
package com.jeesite.modules;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
@@ -20,7 +21,8 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
* @author ThinkGem
|
||||
* @version ${@DateUtils.getDate()}
|
||||
*/
|
||||
@SpringCloudApplication
|
||||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
@EnableFeignClients(basePackages={"com.jeesite.modules"})
|
||||
public class ${@StringUtils.cap(module.moduleCode)}Application extends SpringBootServletInitializer {
|
||||
|
||||
|
||||
@@ -68,10 +68,10 @@ spring:
|
||||
config:
|
||||
server-addr: 127.0.0.1:8848
|
||||
file-extension: yml
|
||||
group: jeesite-cloud-42
|
||||
group: jeesite-cloud-43
|
||||
ext-config:
|
||||
- data-id: application.yml
|
||||
group: jeesite-cloud-42
|
||||
group: jeesite-cloud-43
|
||||
|
||||
# 打印横幅
|
||||
main:
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
<!-- Project level setting -->
|
||||
<!-- <logger name="your.package" level="DEBUG" /> -->
|
||||
<logger name="io.seata" level="INFO" />
|
||||
<logger name="org.springframework.cloud.openfeign.FeignClientFactoryBean" level="ERROR" />
|
||||
<logger name="org.springframework.context.annotation.AnnotationConfigApplicationContext" level="ERROR" />
|
||||
|
||||
<!-- Console log output -->
|
||||
|
||||
Reference in New Issue
Block a user