初始化

master
86191 2024-08-20 15:06:50 +08:00
commit 7516bff6e6
27 changed files with 2034 additions and 0 deletions

35
.gitignore vendored 100644
View File

@ -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

20
Dockerfile 100644
View File

@ -0,0 +1,20 @@
# 指定构建镜像的起始镜像
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
#挂载工作目录
VOLUME ["/home/logs/cloud-modules-system" ]
#拷贝执行jar包文件COPY
COPY ./cloud-data-server/target/cloud-data.jar.jar /home/app.jar
#构建项目启动命令
ENTRYPOINT ["java","-Dfile.encoding=utf8","-jar"]
CMD ["/home/app.jar"]

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-data</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>cloud-data-client</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-data-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-data</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>cloud-data-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-core</artifactId>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations-jakarta</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-security</artifactId>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!--配置ApiModel在实体类中不生效-->
<dependency>
<groupId>com.spring4all</groupId>
<artifactId>spring-boot-starter-swagger</artifactId>
<version>1.5.1.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,91 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:00:48
*/
@ApiModel(value = "权限表",description = "")
@Table(name="cloud-authority")
public class CloudAuthority implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 权限名称 */
@ApiModelProperty(name = "权限名称",notes = "")
private String authorityName ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId(Integer id){
this.id=id;
}
/** 权限名称 */
public String getAuthorityName(){
return this.authorityName;
}
/** 权限名称 */
public void setAuthorityName(String authorityName){
this.authorityName=authorityName;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,134 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:05:18
*/
@ApiModel(value = "支付表",description = "")
@Table(name="cloud_pay")
public class CloudPay implements Serializable,Cloneable{
/** id */
@Id
@GeneratedValue
@ApiModelProperty(name = "id",notes = "")
private Integer id ;
/** 用户主键 */
@ApiModelProperty(name = "用户主键",notes = "")
private Integer userId ;
/** 订单编号 */
@ApiModelProperty(name = "订单编号",notes = "")
private String payOrderNumber ;
/** 支付金额 */
@ApiModelProperty(name = "支付金额",notes = "")
private Double payPrice ;
/** 支付状态(0成功1失败) */
@ApiModelProperty(name = "支付状态(0成功1失败)",notes = "")
private Integer payStatus ;
/** 备注 */
@ApiModelProperty(name = "备注",notes = "")
private String payRemark ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** id */
public Integer getId(){
return this.id;
}
/** id */
public void setId(Integer id){
this.id=id;
}
/** 用户主键 */
public Integer getUserId(){
return this.userId;
}
/** 用户主键 */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 订单编号 */
public String getPayOrderNumber(){
return this.payOrderNumber;
}
/** 订单编号 */
public void setPayOrderNumber(String payOrderNumber){
this.payOrderNumber=payOrderNumber;
}
/** 支付金额 */
public Double getPayPrice(){
return this.payPrice;
}
/** 支付金额 */
public void setPayPrice(Double payPrice){
this.payPrice=payPrice;
}
/** 支付状态(0成功1失败) */
public Integer getPayStatus(){
return this.payStatus;
}
/** 支付状态(0成功1失败) */
public void setPayStatus(Integer payStatus){
this.payStatus=payStatus;
}
/** 备注 */
public String getPayRemark(){
return this.payRemark;
}
/** 备注 */
public void setPayRemark(String payRemark){
this.payRemark=payRemark;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,244 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:20:04
*/
@ApiModel(value = "产品表",description = "")
@Table(name="cloud_product")
public class CloudProduct implements Serializable,Cloneable{
/** id */
@Id
@GeneratedValue
@ApiModelProperty(name = "id",notes = "")
private Integer id ;
/** 客户id */
@ApiModelProperty(name = "客户id",notes = "")
private Integer userId ;
/** 客户性别 */
@ApiModelProperty(name = "客户性别",notes = "")
private String sex ;
/** 客户年龄 */
@ApiModelProperty(name = "客户年龄",notes = "")
private Integer age ;
/** 身份证 */
@ApiModelProperty(name = "身份证",notes = "")
private String idCard ;
/** 联系方法 */
@ApiModelProperty(name = "联系方法",notes = "")
private String tel ;
/** 客户地址 */
@ApiModelProperty(name = "客户地址",notes = "")
private String adress ;
/** 出生日期 */
@ApiModelProperty(name = "出生日期",notes = "")
private String birthday ;
/** 客户征信状态 */
@ApiModelProperty(name = "客户征信状态",notes = "")
private String credit ;
/** 民族 */
@ApiModelProperty(name = "民族",notes = "")
private String familyName ;
/** 国家 */
@ApiModelProperty(name = "国家",notes = "")
private String nation ;
/** 邮箱 */
@ApiModelProperty(name = "邮箱",notes = "")
private String email ;
/** 公司 */
@ApiModelProperty(name = "公司",notes = "")
private String company ;
/** 婚姻情况 */
@ApiModelProperty(name = "婚姻情况",notes = "")
private String maritalStatus ;
/** 教育程度 */
@ApiModelProperty(name = "教育程度",notes = "")
private String educationLevel ;
/** 政治面貌 */
@ApiModelProperty(name = "政治面貌",notes = "")
private String politicalStatus ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private String createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private String updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updatedTime ;
/** id */
public Integer getId(){
return this.id;
}
/** id */
public void setId(Integer id){
this.id=id;
}
/** 客户id */
public Integer getUserId(){
return this.userId;
}
/** 客户id */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 客户性别 */
public String getSex(){
return this.sex;
}
/** 客户性别 */
public void setSex(String sex){
this.sex=sex;
}
/** 客户年龄 */
public Integer getAge(){
return this.age;
}
/** 客户年龄 */
public void setAge(Integer age){
this.age=age;
}
/** 身份证 */
public String getIdCard(){
return this.idCard;
}
/** 身份证 */
public void setIdCard(String idCard){
this.idCard=idCard;
}
/** 联系方法 */
public String getTel(){
return this.tel;
}
/** 联系方法 */
public void setTel(String tel){
this.tel=tel;
}
/** 客户地址 */
public String getAdress(){
return this.adress;
}
/** 客户地址 */
public void setAdress(String adress){
this.adress=adress;
}
/** 出生日期 */
public String getBirthday(){
return this.birthday;
}
/** */
public void setBirthday(String birthday){
this.birthday=birthday;
}
/** 客户征信状态 */
public String getCredit(){
return this.credit;
}
/** 客户征信状态 */
public void setCredit(String credit){
this.credit=credit;
}
/** 民族 */
public String getFamilyName(){
return this.familyName;
}
/** 民族 */
public void setFamilyName(String familyName){
this.familyName=familyName;
}
/** 国家 */
public String getNation(){
return this.nation;
}
/** 国家 */
public void setNation(String nation){
this.nation=nation;
}
/** 邮箱 */
public String getEmail(){
return this.email;
}
/** 邮箱 */
public void setEmail(String email){
this.email=email;
}
/** 公司 */
public String getCompany(){
return this.company;
}
/** 公司 */
public void setCompany(String company){
this.company=company;
}
/** 婚姻情况 */
public String getMaritalStatus(){
return this.maritalStatus;
}
/** 婚姻情况 */
public void setMaritalStatus(String maritalStatus){
this.maritalStatus=maritalStatus;
}
/** 教育程度 */
public String getEducationLevel(){
return this.educationLevel;
}
/** 教育程度 */
public void setEducationLevel(String educationLevel){
this.educationLevel=educationLevel;
}
/** 政治面貌 */
public String getPoliticalStatus(){
return this.politicalStatus;
}
/** 政治面貌 */
public void setPoliticalStatus(String politicalStatus){
this.politicalStatus=politicalStatus;
}
/** 创建人 */
public String getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(String createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public String getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(String updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdatedTime(){
return this.updatedTime;
}
/** 更新时间 */
public void setUpdatedTime(Date updatedTime){
this.updatedTime=updatedTime;
}
}

View File

@ -0,0 +1,101 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:15:56
*/
@ApiModel(value = "三方调用记录表",description = "")
@Table(name="cloud_record")
public class CloudRecord implements Serializable,Cloneable{
/** id */
@Id
@GeneratedValue
@ApiModelProperty(name = "id",notes = "")
private Integer id ;
/** 用户主键 */
@ApiModelProperty(name = "用户主键",notes = "")
private Integer userId ;
/** 状态 */
@ApiModelProperty(name = "状态",notes = "")
private Integer recordStatus ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** id */
public Integer getId(){
return this.id;
}
/** id */
public void setId(Integer id){
this.id=id;
}
/** 用户主键 */
public Integer getUserId(){
return this.userId;
}
/** 用户主键 */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 状态 */
public Integer getRecordStatus(){
return this.recordStatus;
}
/** 状态 */
public void setRecordStatus(Integer recordStatus){
this.recordStatus=recordStatus;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,167 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:19:05
*/
@ApiModel(value = "用户表",description = "")
@Table(name="cloud-user")
public class CloudUser implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 账号 */
@ApiModelProperty(name = "账号",notes = "")
private String userName ;
/** 密码 */
@ApiModelProperty(name = "密码",notes = "")
private String password ;
/** 头像 */
@ApiModelProperty(name = "头像",notes = "")
private String userPhoto ;
/** 电话号 */
@ApiModelProperty(name = "电话号",notes = "")
private String userTel ;
/** 用户性别 */
@ApiModelProperty(name = "用户性别",notes = "")
private String userSex ;
/** 用户邮箱 */
@ApiModelProperty(name = "用户邮箱",notes = "")
private String userEmail ;
/** 用户状态(0正常1禁用) */
@ApiModelProperty(name = "用户状态(0正常1禁用)",notes = "")
private Integer userStatus ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 余额 */
@ApiModelProperty(name = "余额",notes = "")
private Double price ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId(Integer id){
this.id=id;
}
/** 账号 */
public String getUserName(){
return this.userName;
}
/** 账号 */
public void setUserName(String userName){
this.userName=userName;
}
/** 密码 */
public String getPassword(){
return this.password;
}
/** 密码 */
public void setPassword(String password){
this.password=password;
}
/** 头像 */
public String getUserPhoto(){
return this.userPhoto;
}
/** 头像 */
public void setUserPhoto(String userPhoto){
this.userPhoto=userPhoto;
}
/** 电话号 */
public String getUserTel(){
return this.userTel;
}
/** 电话号 */
public void setUserTel(String userTel){
this.userTel=userTel;
}
/** 用户性别 */
public String getUserSex(){
return this.userSex;
}
/** 用户性别 */
public void setUserSex(String userSex){
this.userSex=userSex;
}
/** 用户邮箱 */
public String getUserEmail(){
return this.userEmail;
}
/** 用户邮箱 */
public void setUserEmail(String userEmail){
this.userEmail=userEmail;
}
/** 用户状态(0正常1禁用) */
public Integer getUserStatus(){
return this.userStatus;
}
/** 用户状态(0正常1禁用) */
public void setUserStatus(Integer userStatus){
this.userStatus=userStatus;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
/** 余额 */
public Double getPrice(){
return this.price;
}
/** 余额 */
public void setPrice(Double price){
this.price=price;
}
}

View File

@ -0,0 +1,88 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:02:27
*/
@ApiModel(value = "角色权限中间表",description = "")
@Table(name="role_authority_middle")
public class RoleAuthorityMiddle implements Serializable,Cloneable{
/** 角色主键 */
@ApiModelProperty(name = "角色主键",notes = "")
private Integer roleId ;
/** 权限主键 */
@ApiModelProperty(name = "权限主键",notes = "")
private Integer authorityId ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 角色主键 */
public Integer getRoleId(){
return this.roleId;
}
/** 角色主键 */
public void setRoleId(Integer roleId){
this.roleId=roleId;
}
/** 权限主键 */
public Integer getAuthorityId(){
return this.authorityId;
}
/** 权限主键 */
public void setAuthorityId(Integer authorityId){
this.authorityId=authorityId;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,79 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:17:16
*/
@ApiModel(value = "用户操作记录表",description = "")
@Table(name="user_operate_logs")
public class UserOperateLogs implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 用户Id */
@ApiModelProperty(name = "用户Id",notes = "")
private Integer userId ;
/** 登录时间 */
@ApiModelProperty(name = "登录时间",notes = "")
private Date userRecordStartTime ;
/** 查询信息数据 */
@ApiModelProperty(name = "查询信息数据",notes = "")
private String meaagese ;
/** 退出时间 */
@ApiModelProperty(name = "退出时间",notes = "")
private Date userRecordEndTime ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId(Integer id){
this.id=id;
}
/** 用户Id */
public Integer getUserId(){
return this.userId;
}
/** 用户Id */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 登录时间 */
public Date getUserRecordStartTime(){
return this.userRecordStartTime;
}
/** 登录时间 */
public void setUserRecordStartTime(Date userRecordStartTime){
this.userRecordStartTime=userRecordStartTime;
}
/** 查询信息数据 */
public String getMeaagese(){
return this.meaagese;
}
/** 查询信息数据 */
public void setMeaagese(String meaagese){
this.meaagese=meaagese;
}
/** 退出时间 */
public Date getUserRecordEndTime(){
return this.userRecordEndTime;
}
/** 退出时间 */
public void setUserRecordEndTime(Date userRecordEndTime){
this.userRecordEndTime=userRecordEndTime;
}
}

View File

@ -0,0 +1,90 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 11:16:43
*/
@ApiModel(value = "用户登录记录表",description = "")
@Table(name="user_record")
public class UserRecord implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 用户主键 */
@ApiModelProperty(name = "用户主键",notes = "")
private Integer userId ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId(Integer id){
this.id=id;
}
/** 用户主键 */
public Integer getUserId(){
return this.userId;
}
/** 用户主键 */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,91 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 10:25:24
*/
@ApiModel(value = "角色表",description = "")
@Table(name="cloud-role")
public class cloudRole implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 角色名称 */
@ApiModelProperty(name = "角色名称",notes = "")
private String roleName ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId( Integer id){
this.id=id;
}
/** 角色名称 */
public String getRoleName(){
return this.roleName;
}
/** 角色名称 */
public void setRoleName(String roleName){
this.roleName=roleName;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,102 @@
package com.muyu.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 10:27:17
*/
@ApiModel(value = "用户角色中间表",description = "")
@Table(name="user_role_middle")
public class userRoleMiddle implements Serializable,Cloneable{
/** 主键 */
@Id
@GeneratedValue
@ApiModelProperty(name = "主键",notes = "")
private Integer id ;
/** 用户主键 */
@ApiModelProperty(name = "用户主键",notes = "")
private Integer userId ;
/** 角色主键 */
@ApiModelProperty(name = "角色主键",notes = "")
private Integer roleId ;
/** 创建人 */
@ApiModelProperty(name = "创建人",notes = "")
private Integer createdBy ;
/** 创建时间 */
@ApiModelProperty(name = "创建时间",notes = "")
private Date createdTime ;
/** 更新人 */
@ApiModelProperty(name = "更新人",notes = "")
private Integer updatedBy ;
/** 更新时间 */
@ApiModelProperty(name = "更新时间",notes = "")
private Date updateTime ;
/** 主键 */
public Integer getId(){
return this.id;
}
/** 主键 */
public void setId(Integer id){
this.id=id;
}
/** 用户主键 */
public Integer getUserId(){
return this.userId;
}
/** 用户主键 */
public void setUserId(Integer userId){
this.userId=userId;
}
/** 角色主键 */
public Integer getRoleId(){
return this.roleId;
}
/** 角色主键 */
public void setRoleId(Integer roleId){
this.roleId=roleId;
}
/** 创建人 */
public Integer getCreatedBy(){
return this.createdBy;
}
/** 创建人 */
public void setCreatedBy(Integer createdBy){
this.createdBy=createdBy;
}
/** 创建时间 */
public Date getCreatedTime(){
return this.createdTime;
}
/** 创建时间 */
public void setCreatedTime(Date createdTime){
this.createdTime=createdTime;
}
/** 更新人 */
public Integer getUpdatedBy(){
return this.updatedBy;
}
/** 更新人 */
public void setUpdatedBy(Integer updatedBy){
this.updatedBy=updatedBy;
}
/** 更新时间 */
public Date getUpdateTime(){
return this.updateTime;
}
/** 更新时间 */
public void setUpdateTime(Date updateTime){
this.updateTime=updateTime;
}
}

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-data</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>cloud-data-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-data-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-data</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>cloud-data-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- MuYu Common DataSource -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datasource</artifactId>
</dependency>
<!-- MuYu Common DataScope -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datascope</artifactId>
</dependency>
<!-- MuYu Common Log -->
<!-- <dependency>-->
<!-- <groupId>com.muyu</groupId>-->
<!-- <artifactId>cloud-common-log</artifactId>-->
<!-- </dependency>-->
<!-- 接口模块 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-api-doc</artifactId>
</dependency>
<!-- XllJob定时任务 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-xxl</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-system</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-rabbit</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-data-common</artifactId>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-nacos-remote</artifactId>
</dependency>
</dependencies>
<build>
<finalName>cloud-data</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,19 @@
package com.muyu.server;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @Author YuPing
* @Description
* @Version 1.0
* @Data 2024-08-20 10:25:50
*/
@SpringBootApplication
@MapperScan("com.muyu.server.mapper")
public class DataApplication {
public static void main(String[] args) {
SpringApplication.run(DataApplication.class, args);
}
}

View File

@ -0,0 +1,2 @@
bootstrap.ymlSpring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}

View File

@ -0,0 +1,49 @@
# Tomcat
server:
port: 10001
# nacos线上地址
nacos:
addr: 47.100.87.106:8848
user-name: nacos
password: nacos
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: cloud-data
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
config:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
# 系统共享配置
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 系统环境Config共享配置
- application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# xxl-job 配置文件
- application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# rabbit 配置文件
- application-rabbit-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-data"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-data"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<property name="log.sky.pattern" value="%d{HH:mm:ss.SSS} %yellow([%tid]) [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.sky.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 使用gRpc将日志发送到skywalking服务端 -->
<appender name="GRPC_LOG" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
<Pattern>${log.sky.pattern}</Pattern>
</layout>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="GRPC_LOG"/>
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-test"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<property name="log.sky.pattern" value="%d{HH:mm:ss.SSS} %yellow([%tid]) [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.sky.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 使用gRpc将日志发送到skywalking服务端 -->
<appender name="GRPC_LOG" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
<Pattern>${log.sky.pattern}</Pattern>
</layout>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="GRPC_LOG"/>
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,36 @@
15:02:05.375 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] -
***************************
APPLICATION FAILED TO START
***************************
Description:
Field remoteLogService in com.muyu.common.log.service.AsyncLogService required a bean of type 'com.muyu.common.system.remote.RemoteLogService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.muyu.common.system.remote.RemoteLogService' in your configuration.
15:03:56.326 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] -
***************************
APPLICATION FAILED TO START
***************************
Description:
Field remoteLogService in com.muyu.common.log.service.AsyncLogService required a bean of type 'com.muyu.common.system.remote.RemoteLogService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.muyu.common.system.remote.RemoteLogService' in your configuration.

View File

@ -0,0 +1,116 @@
15:01:57.871 [main] INFO c.m.s.DataApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
15:01:59.909 [main] INFO c.d.f.s.ClassPathClientScanner - [processBeanDefinitions,153] - [Forest] Created Forest Client Bean with name 'nacosServiceRemote' and Proxy of 'com.muyu.common.nacos.remote.NacosServiceRemote' client interface
15:02:00.318 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:02:00.318 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
15:02:00.408 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:02:01.098 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
15:02:05.102 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
15:02:05.103 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
15:02:05.103 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
15:02:05.170 [main] INFO c.m.c.d.MyMetaObjectHandler - [<init>,18] - MyMetaObjectHandler类初始化成功
15:02:05.305 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
15:02:05.309 [main] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
15:02:05.316 [main] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
15:02:05.316 [main] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
15:02:05.316 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
15:02:05.318 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
15:03:49.291 [main] INFO c.m.s.DataApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
15:03:51.203 [main] INFO c.d.f.s.ClassPathClientScanner - [processBeanDefinitions,153] - [Forest] Created Forest Client Bean with name 'nacosServiceRemote' and Proxy of 'com.muyu.common.nacos.remote.NacosServiceRemote' client interface
15:03:51.601 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:03:51.601 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
15:03:51.692 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:03:52.374 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
15:03:56.075 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
15:03:56.076 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
15:03:56.076 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
15:03:56.140 [main] INFO c.m.c.d.MyMetaObjectHandler - [<init>,18] - MyMetaObjectHandler类初始化成功
15:03:56.269 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
15:03:56.270 [main] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
15:03:56.275 [main] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
15:03:56.275 [main] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
15:03:56.275 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
15:03:56.277 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
15:04:54.088 [main] INFO c.m.s.DataApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
15:04:55.858 [main] INFO c.d.f.s.ClassPathClientScanner - [processBeanDefinitions,153] - [Forest] Created Forest Client Bean with name 'nacosServiceRemote' and Proxy of 'com.muyu.common.nacos.remote.NacosServiceRemote' client interface
15:04:56.250 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:04:56.251 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
15:04:56.347 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:04:57.000 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
15:04:59.944 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
15:04:59.944 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
15:04:59.945 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
15:05:00.031 [main] INFO c.m.c.d.MyMetaObjectHandler - [<init>,18] - MyMetaObjectHandler类初始化成功
15:05:00.385 [main] INFO c.m.c.r.RabbitConfig - [init,22] - RabbitMq启动成功
15:05:00.675 [main] INFO c.m.c.x.XXLJobConfig - [xxlJobExecutor,25] - >>>>>>>>>>> xxl-job config init success.
15:05:01.911 [main] INFO c.x.j.c.e.XxlJobExecutor - [registJobHandler,183] - >>>>>>>>>>> xxl-job register jobhandler success, name:xxl-job-demo-no-param, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@3842ccf9[class com.muyu.common.xxl.demo.XxlJobDemoService#xxlJobDemoNoParam]
15:05:01.912 [main] INFO c.x.j.c.e.XxlJobExecutor - [registJobHandler,183] - >>>>>>>>>>> xxl-job register jobhandler success, name:xxl-job-demo-one-param, jobHandler:com.xxl.job.core.handler.impl.MethodJobHandler@17236e87[class com.muyu.common.xxl.demo.XxlJobDemoService#xxlJobDemoOneParam]
15:05:02.083 [Thread-12] INFO c.x.j.c.s.EmbedServer - [run,82] - >>>>>>>>>>> xxl-job remoting server start success, nettype = class com.xxl.job.core.server.EmbedServer, port = 9999
15:05:02.120 [main] INFO c.a.n.client.naming - [initNamespaceForNaming,62] - initializer namespace from ans.namespace attribute : null
15:05:02.121 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$0,66] - initializer namespace from ALIBABA_ALIWARE_NAMESPACE attribute :null
15:05:02.121 [main] INFO c.a.n.client.naming - [lambda$initNamespaceForNaming$1,73] - initializer namespace from namespace attribute :null
15:05:02.126 [main] INFO c.a.n.client.naming - [<init>,74] - FailoverDataSource type is class com.alibaba.nacos.client.naming.backups.datasource.DiskFailoverDataSource
15:05:02.130 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
15:05:02.131 [main] INFO c.a.n.p.a.s.c.ClientAuthPluginManager - [init,56] - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
15:05:02.313 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,118] - [RpcClientFactory] create a new rpc client of b069b291-0608-451d-b67c-769c3c698938
15:05:02.316 [main] INFO c.a.n.client.naming - [<init>,109] - Create naming rpc client for uuid->b069b291-0608-451d-b67c-769c3c698938
15:05:02.316 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager
15:05:02.316 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService
15:05:02.316 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
15:05:02.317 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Try to connect to server on start up, server: {serverIp = '47.100.87.106', server main port = 8848}
15:05:02.317 [main] INFO c.a.n.c.r.c.g.GrpcClient - [createNewManagedChannel,210] - grpc client connection server:47.100.87.106 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
15:05:02.428 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Success to connect to server [47.100.87.106:8848] on start up, connectionId = 1724137500832_117.143.60.138_61905
15:05:02.428 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
15:05:02.428 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Notify connected event to listeners.
15:05:02.428 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,63] - [b069b291-0608-451d-b67c-769c3c698938] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$632/0x00000008011248b0
15:05:02.428 [com.alibaba.nacos.client.remote.worker.0] INFO c.a.n.client.naming - [onConnected,90] - Grpc connection connect
15:05:02.429 [main] INFO c.a.n.client.naming - [registerService,133] - [REGISTER-SERVICE] public registering service cloud-data with instance Instance{instanceId='null', ip='192.168.1.137', port=10001, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}}
15:05:02.461 [main] INFO c.a.c.n.r.NacosServiceRegistry - [register,76] - nacos registry, DEFAULT_GROUP cloud-data 192.168.1.137:10001 register finished
15:05:02.559 [main] INFO c.m.s.DataApplication - [logStarted,56] - Started DataApplication in 11.568 seconds (process running for 12.371)
15:05:02.568 [main] INFO c.a.n.c.c.i.CacheData - [initNotifyWarnTimeout,72] - config listener notify warn timeout millis use default 60000 millis
15:05:02.568 [main] INFO c.a.n.c.c.i.CacheData - [<clinit>,99] - nacos.cache.data.init.snapshot = true
15:05:02.569 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-47.100.87.106_8848] [subscribe] cloud-data.yml+DEFAULT_GROUP
15:05:02.576 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-47.100.87.106_8848] [add-listener] ok, tenant=, dataId=cloud-data.yml, group=DEFAULT_GROUP, cnt=1
15:05:02.576 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-data.yml, group=DEFAULT_GROUP
15:05:02.576 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-47.100.87.106_8848] [subscribe] cloud-data+DEFAULT_GROUP
15:05:02.576 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-47.100.87.106_8848] [add-listener] ok, tenant=, dataId=cloud-data, group=DEFAULT_GROUP, cnt=1
15:05:02.576 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-data, group=DEFAULT_GROUP
15:05:02.577 [main] INFO c.a.n.c.c.i.ClientWorker - [addCacheDataIfAbsent,416] - [fixed-47.100.87.106_8848] [subscribe] cloud-data-dev.yml+DEFAULT_GROUP
15:05:02.577 [main] INFO c.a.n.c.c.i.CacheData - [addListener,236] - [fixed-47.100.87.106_8848] [add-listener] ok, tenant=, dataId=cloud-data-dev.yml, group=DEFAULT_GROUP, cnt=1
15:05:02.577 [main] INFO c.a.c.n.r.NacosContextRefresher - [registerNacosListener,131] - [Nacos Config] Listening config: dataId=cloud-data-dev.yml, group=DEFAULT_GROUP
15:05:03.206 [RMI TCP Connection(3)-192.168.1.137] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
15:05:21.505 [Thread-12] INFO c.x.j.c.s.EmbedServer - [run,91] - >>>>>>>>>>> xxl-job remoting server stop.
15:05:21.520 [xxl-job, executor ExecutorRegistryThread] INFO c.x.j.c.t.ExecutorRegistryThread - [run,87] - >>>>>>>>>>> xxl-job registry-remove success, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='cloud-data', registryValue='http://192.168.1.137:9999/'}, registryResult:ReturnT [code=200, msg=null, content=null]
15:05:21.521 [xxl-job, executor ExecutorRegistryThread] INFO c.x.j.c.t.ExecutorRegistryThread - [run,105] - >>>>>>>>>>> xxl-job, executor registry thread destroy.
15:05:21.521 [SpringApplicationShutdownHook] INFO c.x.j.c.s.EmbedServer - [stop,117] - >>>>>>>>>>> xxl-job remoting server destroy success.
15:05:21.521 [xxl-job, executor JobLogFileCleanThread] INFO c.x.j.c.t.JobLogFileCleanThread - [run,99] - >>>>>>>>>>> xxl-job, executor JobLogFileCleanThread thread destroy.
15:05:21.521 [xxl-job, executor TriggerCallbackThread] INFO c.x.j.c.t.TriggerCallbackThread - [run,98] - >>>>>>>>>>> xxl-job, executor callback thread destroy.
15:05:21.521 [Thread-11] INFO c.x.j.c.t.TriggerCallbackThread - [run,128] - >>>>>>>>>>> xxl-job, executor retry callback thread destroy.
15:05:21.526 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
15:05:21.528 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
15:05:21.533 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
15:05:21.533 [SpringApplicationShutdownHook] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
15:05:21.533 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
15:05:21.533 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,95] - De-registering from Nacos Server now...
15:05:21.534 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [deregisterService,272] - [DEREGISTER-SERVICE] public deregistering service cloud-data with instance: Instance{instanceId='null', ip='192.168.1.137', port=10001, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={}}
15:05:21.548 [SpringApplicationShutdownHook] INFO c.a.c.n.r.NacosServiceRegistry - [deregister,115] - De-registration finished.
15:05:21.549 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,254] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin
15:05:21.549 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,180] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,182] - com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,256] - com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,204] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,147] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,149] - com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,218] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,223] - com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,468] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,470] - com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,487] - Shutdown naming grpc client proxy for uuid->b069b291-0608-451d-b67c-769c3c698938
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,331] - Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@3576e7b7[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 6]
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,425] - Shutdown rpc client, set status to shutdown
15:05:21.550 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [shutdown,427] - Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@4dc79e04[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0]
15:05:21.551 [SpringApplicationShutdownHook] INFO c.a.n.c.r.client - [closeConnection,584] - Close current connection 1724137500832_117.143.60.138_61905
15:05:21.552 [SpringApplicationShutdownHook] INFO c.a.n.c.r.c.g.GrpcClient - [shutdown,187] - Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@6a331046[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 11]
15:05:21.552 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutDownAndRemove,497] - shutdown and remove naming rpc client for uuid ->b069b291-0608-451d-b67c-769c3c698938
15:05:21.553 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialWatcher - [stop,107] - [null] CredentialWatcher is stopped
15:05:21.553 [SpringApplicationShutdownHook] INFO c.a.n.c.a.r.i.CredentialService - [free,91] - [null] CredentialService is freed
15:05:21.553 [SpringApplicationShutdownHook] INFO c.a.n.client.naming - [shutdown,211] - com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop

View File

@ -0,0 +1,36 @@
11:53:29.219 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] -
***************************
APPLICATION FAILED TO START
***************************
Description:
Field remoteLogService in com.muyu.common.log.service.AsyncLogService required a bean of type 'com.muyu.common.system.remote.RemoteLogService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.muyu.common.system.remote.RemoteLogService' in your configuration.
11:53:29.533 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] -
***************************
APPLICATION FAILED TO START
***************************
Description:
Field remoteLogService in com.muyu.common.log.service.AsyncLogService required a bean of type 'com.muyu.common.system.remote.RemoteLogService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.muyu.common.system.remote.RemoteLogService' in your configuration.

View File

@ -0,0 +1,32 @@
11:53:17.876 [main] INFO c.m.s.DataApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
11:53:19.248 [main] INFO c.m.s.DataApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
11:53:21.404 [main] INFO c.d.f.s.ClassPathClientScanner - [processBeanDefinitions,153] - [Forest] Created Forest Client Bean with name 'nacosServiceRemote' and Proxy of 'com.muyu.common.nacos.remote.NacosServiceRemote' client interface
11:53:22.034 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
11:53:22.034 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
11:53:22.157 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
11:53:22.443 [main] INFO c.d.f.s.ClassPathClientScanner - [processBeanDefinitions,153] - [Forest] Created Forest Client Bean with name 'nacosServiceRemote' and Proxy of 'com.muyu.common.nacos.remote.NacosServiceRemote' client interface
11:53:23.059 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
11:53:23.059 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
11:53:23.165 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
11:53:23.347 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
11:53:25.120 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
11:53:28.643 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
11:53:28.644 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
11:53:28.645 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
11:53:28.799 [main] INFO c.m.c.d.MyMetaObjectHandler - [<init>,18] - MyMetaObjectHandler类初始化成功
11:53:29.020 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
11:53:29.021 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
11:53:29.021 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
11:53:29.105 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
11:53:29.108 [main] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
11:53:29.119 [main] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
11:53:29.119 [main] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
11:53:29.119 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
11:53:29.124 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]
11:53:29.186 [main] INFO c.m.c.d.MyMetaObjectHandler - [<init>,18] - MyMetaObjectHandler类初始化成功
11:53:29.445 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,215] - dynamic-datasource start closing ....
11:53:29.449 [main] INFO c.a.d.p.DruidDataSource - [close,2204] - {dataSource-1} closing ...
11:53:29.458 [main] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
11:53:29.460 [main] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
11:53:29.461 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
11:53:29.466 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat]

30
pom.xml 100644
View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-server-parent</artifactId>
<version>3.6.4</version>
</parent>
<artifactId>cloud-data</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<modules>
<module>cloud-data-common</module>
<module>cloud-data-client</module>
<module>cloud-data-remote</module>
<module>cloud-data-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>