
谷粒商城
文章平均质量分 74
土拨鼠饲养员
这个作者很懒,什么都没留下…
展开
-
项目细节 3
//4. 页面设置防重令牌 String token = UUID.randomUUID().toString().replace("-", ""); redisTemplate.opsForValue().set(OrderConstant.USER_ORDER_TOKEN_PREFIX + memberRespTo.getId(), token, 30, TimeUnit.MINUTES); confirmVo.setOrderToken(...原创 2021-12-04 20:28:40 · 1171 阅读 · 0 评论 -
项目细节 2
配置search.gulimall.com网关处 - id: gulimall_search_route uri: lb://gulimall-search predicates: - Host=search.gulimall.com原创 2021-11-21 14:46:48 · 273 阅读 · 0 评论 -
项目细节1
查询分类数据(三级查询) @JsonInclude(JsonInclude.Include.NON_EMPTY) @TableField(exist = false) private List<CategoryEntity> children; @Override public List<CategoryEntity> listWithTree() { List<CategoryEntity> entities = b.原创 2021-11-13 13:41:04 · 139 阅读 · 0 评论 -
Spring CloudAlibaba粗看
nacos服务注册spring: cloud: name: xxx # 注册中心中的名字 nacos: discovery: server-addr: 127.0.0.1开启服务注册发现@EnableDiscoveryClient127.0.0.1:8848/nacos配置管理## 默认规则 应用名.properties,如果配置文件和配置中心的值有相同## 优先读取配置中心的值spring.application.name=gulim原创 2021-11-12 21:04:08 · 814 阅读 · 1 评论