# learning **Repository Path**: aass111/learning ## Basic Information - **Project Name**: learning - **Description**: 学习和测试的案例 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-30 - **Last Updated**: 2026-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LEARNING项目 > 端口号 > + gateway: 88 > + auth: 21000 > + user: 21100 > + business: 21200 > + file: 21300 > + flowable: 21400 > + im: 21500 > + test: 22222 # 模块说明 gateway: > 网关服务,负责请求转发和鉴权功能,整合Spring Security+Oauth2 auth: > Oauth2认证服务,负责对登录用户进行认证,整合Spring Security+Oauth2 其他服务: > 受保护的API服务,用户鉴权通过后可以访问该服务,不整合Spring Security+Oauth2 business: 业务后台,提供业务逻辑
技术栈包括: - 自定义starter - kafka - Elasticsearch fileSystem: 文件操作、云存储:阿里云使用
技术栈包括: - 多数据源配置 - 定时任务 - util读取yml # Gateway ## AuthorizationManager 这个类里面进行的路径的鉴权,执行的逻辑是匹配URL和roleName进行一一比对 # 问题梳理 ## nacos 启动 config 报错 见我自己写的博客 # seata资料 https://www.jianshu.com/p/69081da8e5cb https://blog.csdn.net/github_34793283/article/details/113752694?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-1&spm=1001.2101.3001.4242 https://blog.csdn.net/han949417140/article/details/116161114?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-4&spm=1001.2101.3001.4242 https://blog.csdn.net/weixin_39800144/article/details/103726228 https://blog.csdn.net/jixieguang/article/details/110621561?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-3.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-3.control ## 将seata配置注册到nacos sh nacos-config.sh -h 192.168.108.134 -p 8848 -g SEATA_GROUP -u nacos -w nacos -t 70e8f0d5-a9b4-413a-b17c-f98b01be3a3b # oauth2学习文章 https://cloud.tencent.com/developer/article/1661343 # stream操作 ```java //拿到所有的id,去查询推广码URL List posterIds = relationList.stream().map(ChannelActivityRelation::getPromotionCodeId).collect(Collectors.toList()); promotionPosterMap = posterList.stream().collect(Collectors.toMap(PromotionCode::getId, item -> item)); List channelIds = channelInfoList.stream().map(ChannelInfo::getChannelId).collect(Collectors.toList()); // Map channelInfoMap = channelInfoList.stream().collect(Collectors.toMap(ChannelInfo::getChannelId, item -> item)); // if (StringUtils.isBlank(ao.getChannelName())) { // List channelIds = relationList.stream().map(ChannelActivityRelation::getChannelId).collect(Collectors.toList()); // List channelInfos = channelInfoMapper.queryChannelInfoByChannelIds(channelIds); // channelInfoMap = channelInfos.stream().collect(Collectors.toMap(ChannelInfo::getChannelId, item -> item)); // } // List channelIds = relationList.stream().map(ChannelActivityRelation::getChannelId).collect(Collectors.toList()); // List channelInfoList = channelInfoMapper.queryChannelInfoByChannelIds(channelIds); // Map channelInfoMap = channelInfoList.stream().collect(Collectors.toMap(ChannelInfo::getChannelId, item -> item)); // //拿到所有的id,去查询推广码URL // List posterIds = relationList.stream().map(ChannelActivityRelation::getPromotionCodeId).collect(Collectors.toList()); // List channelIdList = relationList.stream().map(ChannelActivityRelation::getChannelId).collect(Collectors.toList()); promotionPosterMap = posterList.stream().collect(Collectors.toMap(PromotionCode::getId, item -> item)); Map channelInfoMap = channelInfoList.stream().collect(Collectors.toMap(ChannelInfo::getChannelId, item -> item)); ``` 公众号后台网站:https://mp.weixin.qq.com/cgi-bin/home?t=home/index&lang=zh_CN&token=1973274404