commit afb972a5aea229999a03a634146c35cca23086b5 Author: Qin Dong Ming <2720806930@qq.com> Date: Thu Aug 22 14:15:39 2024 +0800 初始化规则引擎 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e403e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..17f7a53 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6 + +ENV TZ=Asia/Shanghai + +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone + +VOLUME ["/home/logs/cloud-etl"] + +COPY ./cloud-etl-server/target/cloud-etl.jar /home/app.jar + +ENTRYPOINT ["java","-jar"] +CMD ["/home/app.jar"] diff --git a/cloud-etl-client/pom.xml b/cloud-etl-client/pom.xml new file mode 100644 index 0000000..d81eaf3 --- /dev/null +++ b/cloud-etl-client/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + com.muyu + cloud-etl + 1.0.0 + + + cloud-etl-client + + + 17 + 17 + UTF-8 + + + diff --git a/cloud-etl-client/src/main/java/com/muyu/Main.java b/cloud-etl-client/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..95690d4 --- /dev/null +++ b/cloud-etl-client/src/main/java/com/muyu/Main.java @@ -0,0 +1,7 @@ +package com.muyu; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/cloud-etl-common/pom.xml b/cloud-etl-common/pom.xml new file mode 100644 index 0000000..7cd1df0 --- /dev/null +++ b/cloud-etl-common/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + com.muyu + cloud-etl + 1.0.0 + + + cloud-etl-common + + + 17 + 17 + UTF-8 + + + + + com.muyu + cloud-common-core + + + + diff --git a/cloud-etl-common/src/main/java/com/muyu/Main.java b/cloud-etl-common/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..95690d4 --- /dev/null +++ b/cloud-etl-common/src/main/java/com/muyu/Main.java @@ -0,0 +1,7 @@ +package com.muyu; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/cloud-etl-remote/pom.xml b/cloud-etl-remote/pom.xml new file mode 100644 index 0000000..c0b2a20 --- /dev/null +++ b/cloud-etl-remote/pom.xml @@ -0,0 +1,28 @@ + + + 4.0.0 + + com.muyu + cloud-etl + 1.0.0 + + + cloud-etl-remote + + + 17 + 17 + UTF-8 + + + + + com.muyu + cloud-etl-common + 1.0.0 + + + + diff --git a/cloud-etl-remote/src/main/java/com/muyu/Main.java b/cloud-etl-remote/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..95690d4 --- /dev/null +++ b/cloud-etl-remote/src/main/java/com/muyu/Main.java @@ -0,0 +1,7 @@ +package com.muyu; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/cloud-etl-server/pom.xml b/cloud-etl-server/pom.xml new file mode 100644 index 0000000..42ef980 --- /dev/null +++ b/cloud-etl-server/pom.xml @@ -0,0 +1,93 @@ + + + 4.0.0 + + com.muyu + cloud-etl + 1.0.0 + + + cloud-etl-server + + + + + + + + com.muyu + cloud-etl-common + 1.0.0 + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + com.mysql + mysql-connector-j + + + + + com.muyu + cloud-common-datasource + + + + + com.muyu + cloud-common-datascope + + + + + + + + + + + com.muyu + cloud-common-api-doc + + + + + + + + + + + + + + + + diff --git a/cloud-etl-server/src/main/java/com/muyu/MuyuApplication.java b/cloud-etl-server/src/main/java/com/muyu/MuyuApplication.java new file mode 100644 index 0000000..623d7d7 --- /dev/null +++ b/cloud-etl-server/src/main/java/com/muyu/MuyuApplication.java @@ -0,0 +1,18 @@ +package com.muyu; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @Author:qdm + * @Package:com.muyu + * @Project:cloud-etl + * @name:MuyuApplication + * @Date:2024/8/20 20:28 + */ +@SpringBootApplication +public class MuyuApplication { + public static void main(String[] args) { + SpringApplication.run(MuyuApplication.class, args); + } +} diff --git a/cloud-etl-server/src/main/resources/bootstrap.yml b/cloud-etl-server/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..9b191b5 --- /dev/null +++ b/cloud-etl-server/src/main/resources/bootstrap.yml @@ -0,0 +1,28 @@ +# Tomcat +server: + port: 9205 + +# Spring +spring: + application: + # 应用名称 + name: cloud-etl + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 43.142.100.73:8848 + config: + # 配置中心地址 + server-addr: 43.142.100.73:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} +logging: + level: + com.muyu.etl.mapper: DEBUG diff --git a/cloud-etl-server/src/main/resources/mapper/EtlMapper.xml b/cloud-etl-server/src/main/resources/mapper/EtlMapper.xml new file mode 100644 index 0000000..cd600ad --- /dev/null +++ b/cloud-etl-server/src/main/resources/mapper/EtlMapper.xml @@ -0,0 +1,20 @@ + + + + + select id, basic_id, dict_name, dict_type, remark, create_by, create_time, update_by, update_time from asset_data_dict + + + select id, basic_id, dict_name, dict_type, remark, create_by, create_time, update_by, update_time from asset_data_dict + + + + where id = #{id} + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..4b87579 --- /dev/null +++ b/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + + com.muyu + cloud-server-parent + 3.6.4 + + + com.muyu + + cloud-etl + 1.0.0 + pom + + cloud-etl-client + cloud-etl-common + cloud-etl-remote + cloud-etl-server + + + + + diff --git a/src/main/java/com/muyu/Main.java b/src/main/java/com/muyu/Main.java new file mode 100644 index 0000000..95690d4 --- /dev/null +++ b/src/main/java/com/muyu/Main.java @@ -0,0 +1,7 @@ +package com.muyu; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file