This commit is contained in:
骑着蜗牛追导弹 2024-12-03 23:16:19 +08:00
parent 7468644622
commit 3aae139b28
5 changed files with 41 additions and 99 deletions

View File

@ -10,4 +10,42 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>kenaito-config-common</artifactId> <artifactId>kenaito-config-common</artifactId>
<name>子模块-配置中心-公共依赖</name> <name>子模块-配置中心-公共依赖</name>
<properties>
<netty.version>4.1.115.Final</netty.version>
<protostuff.version>1.3.0</protostuff.version>
<hutool.version>5.8.33</hutool.version>
</properties>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<!-- protostuff -->
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-api</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-core</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-runtime</artifactId>
<version>${protostuff.version}</version>
</dependency>
<!-- 工具包 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -8,11 +8,7 @@
<version>1.0</version> <version>1.0</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<properties>
<netty.version>4.1.115.Final</netty.version>
<protostuff.version>1.3.0</protostuff.version>
<hutool.version>5.8.33</hutool.version>
</properties>
<artifactId>kenaito-config-core</artifactId> <artifactId>kenaito-config-core</artifactId>
<name>子模块-配置中心sdk</name> <name>子模块-配置中心sdk</name>
@ -23,35 +19,5 @@
<artifactId>kenaito-config-common</artifactId> <artifactId>kenaito-config-common</artifactId>
<version>1.0</version> <version>1.0</version>
</dependency> </dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>${netty.version}</version>
</dependency>
<!-- protostuff -->
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-api</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-core</artifactId>
<version>${protostuff.version}</version>
</dependency>
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
<artifactId>protostuff-runtime</artifactId>
<version>${protostuff.version}</version>
</dependency>
<!-- 工具包 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -1,46 +0,0 @@
package cn.odboy;
import cn.odboy.util.GenCmdHelper;
import java.util.List;
/**
* 代码生成入口
*
* @date 2024-04-27
*/
public class GenCode {
public static void main(String[] args) {
GenCmdHelper generator = new GenCmdHelper();
generator.setDatabaseUrl(String.format("jdbc:mysql://%s:%s/%s", "kenaito-mysql.odboy.local", 13306, "kenaito_devops"));
generator.setDatabaseUsername("root");
generator.setDatabasePassword("root");
genCareer(generator);
}
private static void genCareer(GenCmdHelper generator) {
generator.gen("devops_", List.of(
// 应用
// "devops_app",
// "devops_app_user",
// "devops_product_line",
// 应用迭代
// "devops_app_iteration",
// "devops_app_iteration_change",
// 容器
// "devops_containerd_cluster_config",
// "devops_containerd_cluster_node",
// "devops_ops_config",
// "devops_containerd_spec_config",
// 网络
// "devops_network_service",
// "devops_network_ingress",
// 流水线
"devops_pipeline_template_type",
"devops_pipeline_template_language",
"devops_pipeline_template_language_config",
"devops_pipeline_template_app"
));
}
}

View File

@ -1,24 +1,16 @@
package cn.odboy; package cn.odboy;
import cn.odboy.infra.context.EasyBootApplication;
import cn.odboy.infra.context.SpringContextHolder;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableAsync @EnableAsync
@SpringBootApplication @SpringBootApplication
@EnableTransactionManagement @EnableTransactionManagement
public class KenaitoConfigDemoRun extends EasyBootApplication { public class KenaitoConfigDemoRun {
@Bean
public SpringContextHolder springContextHolder() {
return new SpringContextHolder();
}
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication springApplication = new SpringApplication(KenaitoConfigDemoRun.class); SpringApplication springApplication = new SpringApplication(KenaitoConfigDemoRun.class);
initd(springApplication.run(args)); springApplication.run(args);
} }
} }

View File

@ -1,8 +0,0 @@
_ _ _____ __ _ ___ _ _____ _____ _____ _____ __ _ _____ _ _____
| | / / | ____| | \ | | / | | | |_ _| / _ \ / ___| / _ \ | \ | | | ___| | | / ___|
| |/ / | |__ | \| | / /| | | | | | | | | | | | | | | | | \| | | |__ | | | |
| |\ \ | __| | |\ | / / | | | | | | | | | | | | | | | | | |\ | | __| | | | | _
| | \ \ | |___ | | \ | / / | | | | | | | |_| | | |___ | |_| | | | \ | | | | | | |_| |
|_| \_\ |_____| |_| \_| /_/ |_| |_| |_| \_____/ \_____| \_____/ |_| \_| |_| |_| \_____/
:: Spring Boot :: (v2.7.18)