规则仓库初始化

yuan
yuan 2024-08-22 19:58:18 +08:00
parent c10c3ed57e
commit b0bc85e804
6 changed files with 60 additions and 60 deletions

6
.gitignore vendored
View File

@ -4,10 +4,7 @@ target/
!**/src/test/**/target/ !**/src/test/**/target/
### IntelliJ IDEA ### ### IntelliJ IDEA ###
.idea/modules.xml .idea
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws *.iws
*.iml *.iml
*.ipr *.ipr
@ -36,3 +33,4 @@ build/
### Mac OS ### ### Mac OS ###
.DS_Store .DS_Store
/.idea/

23
Dockerfile 100644
View File

@ -0,0 +1,23 @@
# |— home
# |— app.jar - 启动jar报
# |— logs - 日志文件
# |— uploadPath - 上传路径
#指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
#执行 一些必备的条件
#定义时区参数
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
# 挂在工作目录 YouMoments ago · Uncommitted changes
VOLUME ["/home/logs/cloud-rule","/home/uploadPath"]
#拷贝执行jar包文件
COPY ./cloud-integration-server/target/cloud-rule.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]
CMD ["/home/app.jar"]

View File

@ -22,7 +22,7 @@ public class RuleData extends BaseEntity {
/** /**
* ID * ID
*/ */
private String ruleId; private Integer ruleId;
/** /**
* *
*/ */
@ -31,41 +31,6 @@ public class RuleData extends BaseEntity {
* *
*/ */
private String ruleClassify; private String ruleClassify;
/**
*
*/
private String ruleName;
/**
*
*/
private String ruleExplain;
/**
*
*/
private String ruleRespond;
/**
*
*/
private String ruleStatus;
/**
*
*/
private String createdBy;
/**
*
*/
private String createdTime;
/**
*
*/
private String updateBy;
/**
*
*/
private String updatedTime;
/**
*
*/
private String remark;
} }

View File

@ -22,34 +22,30 @@ public class RuleDataClassify extends BaseEntity {
/** /**
* ID * ID
*/ */
private String id; private Integer id;
/** /**
* *
*/ */
private String classifyName; private Integer ruleClassify;
/** /**
* *
*/ */
private String classifyStatus; private String ruleName;
/** /**
* *
*/ */
private String createdBy; private String ruleCode;
/** /**
* *
*/ */
private String createdTime; private String ruleExplain;
/** /**
* *
*/ */
private String updateBy; private String ruleRespond;
/** /**
* *
*/ */
private String updatedTime; private Integer ruleStatus;
/**
*
*/
private String remark;
} }

View File

@ -84,7 +84,7 @@
</dependencies> </dependencies>
<build> <build>
<finalName>cloud-integration</finalName> <finalName>cloud-rule</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -0,0 +1,18 @@
package com.muyu;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @Author
* @Packagecom.muyu
* @Projectcloud-rule
* @nameMuYuRuleDataApplication
* @Date2024/8/22 7:49
*/
@SpringBootApplication
public class MuYuRuleDataApplication {
public static void main(String[] args) {
SpringApplication.run(MuYuRuleDataApplication.class, args);
}
}