更新 Cloud 版本的代码生成器(强劲生成,提供微服务模块生成和增删改查生成,无需手写一行代码)
This commit is contained in:
@@ -52,10 +52,10 @@ spring:
|
|||||||
config:
|
config:
|
||||||
server-addr: 10.0.2.15:8848
|
server-addr: 10.0.2.15:8848
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
group: jeesite-cloud-42
|
group: jeesite-cloud-43
|
||||||
ext-config:
|
ext-config:
|
||||||
- data-id: application.yml
|
- data-id: application.yml
|
||||||
group: jeesite-cloud-42
|
group: jeesite-cloud-43
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</template>
|
</template>
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
<artifactId>jeesite-cloud-parent</artifactId>
|
<artifactId>jeesite-cloud-parent-web</artifactId>
|
||||||
<version>${jeesiteVersion}-SNAPSHOT</version>
|
<version>${jeesiteVersion}-SNAPSHOT</version>
|
||||||
<relativePath>../../../parent/pom.xml</relativePath>
|
<relativePath>../../../parent/web/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>jeesite-cloud-module-${module.moduleCode}</artifactId>
|
<artifactId>jeesite-cloud-module-${module.moduleCode}</artifactId>
|
||||||
@@ -40,40 +40,17 @@
|
|||||||
|
|
||||||
<dependencies>
|
<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>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<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>
|
<version>\${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@@ -89,19 +66,6 @@
|
|||||||
<version>\${project.parent.version}</version>
|
<version>\${project.parent.version}</version>
|
||||||
</dependency> -->
|
</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>
|
<dependency>
|
||||||
<groupId>com.jeesite</groupId>
|
<groupId>com.jeesite</groupId>
|
||||||
@@ -116,15 +80,6 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency> -->
|
</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>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -10,9 +10,10 @@
|
|||||||
package com.jeesite.modules;
|
package com.jeesite.modules;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
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;
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -20,7 +21,8 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
|||||||
* @author ThinkGem
|
* @author ThinkGem
|
||||||
* @version ${@DateUtils.getDate()}
|
* @version ${@DateUtils.getDate()}
|
||||||
*/
|
*/
|
||||||
@SpringCloudApplication
|
@SpringBootApplication
|
||||||
|
@EnableDiscoveryClient
|
||||||
@EnableFeignClients(basePackages={"com.jeesite.modules"})
|
@EnableFeignClients(basePackages={"com.jeesite.modules"})
|
||||||
public class ${@StringUtils.cap(module.moduleCode)}Application extends SpringBootServletInitializer {
|
public class ${@StringUtils.cap(module.moduleCode)}Application extends SpringBootServletInitializer {
|
||||||
|
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ spring:
|
|||||||
config:
|
config:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
group: jeesite-cloud-42
|
group: jeesite-cloud-43
|
||||||
ext-config:
|
ext-config:
|
||||||
- data-id: application.yml
|
- data-id: application.yml
|
||||||
group: jeesite-cloud-42
|
group: jeesite-cloud-43
|
||||||
|
|
||||||
# 打印横幅
|
# 打印横幅
|
||||||
main:
|
main:
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
<!-- Project level setting -->
|
<!-- Project level setting -->
|
||||||
<!-- <logger name="your.package" level="DEBUG" /> -->
|
<!-- <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" />
|
<logger name="org.springframework.context.annotation.AnnotationConfigApplicationContext" level="ERROR" />
|
||||||
|
|
||||||
<!-- Console log output -->
|
<!-- Console log output -->
|
||||||
|
|||||||
Reference in New Issue
Block a user