学习地址收藏
微服务之Nacos使用
SpringBoot读取配置文件顺序:bootstrap.yml>bootstrap.yaml>bootstrap.properties>nacos的配置>application.yml>applic
SpringBoot读取配置文件顺序:bootstrap.yml>bootstrap.yaml>bootstrap.properties>nacos的配置>application.yml>application.yaml>application.properties
idea本地项目提交gitee
微服务资源地址
@AllArgsConstructor注解作用
它是lombok中的注解,作用在类上;
使用后添加一个构造函数,该构造函数含有所有已声明字段属性参数
枚举类enum
@Getter
public enum CollectShopAppRequestTypeEnum {
/**
* app店铺类型 1 新址店铺 2 意向店铺 3 待签约店铺 4 筹建中店铺 5 在营店铺 6 已终止店铺 "
* + "7 竞争店铺 8 协同店铺 9 已关店铺
*/
REQUEST_TYPE_ALL(1, "新址店铺"),
REQUEST_TYPE_INTENTION(2, "意向店铺"),
REQUEST_TYPE_COMPARE(3, "待签约店铺"),
REQUEST_TYPE_AROUND(4, "筹建中店铺"),
REQUEST_TYPE_OPENING(5, "在营店铺"),
REQUEST_TYPE_INVALID(6, "已终止店铺"),
REQUEST_TYPE_COMPETE(7, "竞争店铺"),
REQUEST_TYPE_JOINT(8, "协同店铺"),
REQUEST_TYPE_CLOSE(9, "已关店铺")
;
private Integer type;
private String text;
CollectShopAppRequestTypeEnum() {
}
CollectShopAppRequestTypeEnum(Integer type, String text) {
this.type = type;
this.text = text;
}
public static CollectShopAppRequestTypeEnum getByType(Integer type) {
for (CollectShopAppRequestTypeEnum shopTYPEEnum : CollectShopAppRequestTypeEnum.values()) {
if (Objects.equals(shopTYPEEnum.getType(), type)) {
return shopTYPEEnum;
}
}
return null;
}
}
@Getter
public enum CollectShopTabEnum {
/**
* group 配置
*/
SHOP_BASIC("shop_basic", "基础信息", 0),
SHOP_IMAGE("shop_image", "相关图片", 0),
SHOP_BUSINESS("shop_business", "商务条件", 0),
SHOP_PROJECT("shop_project", "工程条件", 0),
SHOP_LEGAL("shop_legal", "法务附件", 0),
shop_compare("shop_compare", "标准对照", 3),
shop_around("shop_around", "周边评估", 4),
shop_test("shop_test", "投资测算", 5),
shop_sign("shop_sign", "合同签订", 7),
shop_build("shop_build", "筹建进度", 8)
;
private String key;
private String name;
private Integer status;
CollectShopTabEnum(String key, String name, Integer status) {
this.key = key;
this.name = name;
this.status = status;
}
public static List<KeyValueResp> listTabByStatus(Integer status) {
List<KeyValueResp> list = new ArrayList<>();
for (CollectShopTabEnum tabEnum : CollectShopTabEnum.values()) {
if (tabEnum.getStatus().intValue() <= status) {
KeyValueResp keyValueResp = new KeyValueResp();
keyValueResp.setValue(tabEnum.getName());
keyValueResp.setKey(tabEnum.getKey());
list.add(keyValueResp);
}
}
return list;
}
public static List<KeyValueResp> listTabBase() {
List<KeyValueResp> list = new ArrayList<>();
for (CollectShopTabEnum tabEnum : CollectShopTabEnum.values()) {
if (tabEnum.getStatus().intValue() == 0) {
KeyValueResp keyValueResp = new KeyValueResp();
keyValueResp.setValue(tabEnum.getName());
keyValueResp.setKey(tabEnum.getKey());
list.add(keyValueResp);
}
}
return list;
}
}
异常分类Exception

除like之外的模糊查询 REGEXP
除like之外的模糊查询
REGEXP
idea 错误: 找不到或无法加载主类 com.shuwei.SwMchUserApplication
错误: 找不到或无法加载主类 com.shuwei.SwMchUserApplication
新引入了一起微服务吧
clean->install–>deploy
查询出来的对象,在get前要判断该元素不为空
查询出来的对象,在get前要判断该元素不为空
远程接口好像不影响
2021年即将过去…告别2021

2021年与2020不变的事疫情还没有结束。
把2021的烦恼留在2021吧!把希望带给2022,未完成的事情继续完成!
进步快速,珍惜眼前人和事!
springcloud建测试类
springcloud建测试类

和启动类应该在相同的路径
Java基础算法导航图

效率与空间内存使用情况
思路图

审核
通过业务的流转
驳回
configId shopId
所有的程序集合在遍历的时候,一定要判定不为空
本文使用 文章同步助手 同步