上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 35 下一页
摘要: 网关除了路由以外 还可以做统一网关鉴权 限流 统一日志等 route ID URI(请求地址) 一组断言 和一组过滤器组成的 predicate 根据条件返回boolean值 要么为真要么为假 Filter 对已经通过的路由请求 可以加工- 代表一个组的意思-After=xxx时间 在这之后访问该u 阅读全文
posted @ 2022-05-15 22:59 花心大萝卜li 阅读(57) 评论(0) 推荐(0)
摘要: 在oder 名称空间配置mybatis信息 配置数据库链接配置 spring: application: name: mall-order cloud: nacos: discovery: server-addr: 192.168.1.137:8848 config: server-addr: 19 阅读全文
posted @ 2022-05-15 19:39 花心大萝卜li 阅读(165) 评论(0) 推荐(0)
摘要: 我们先将public里面的文件克隆到order名称空间中若我们想要访问order中的yml 则需要在服务中修改配置文件 bootstrap.yml/properties中添加该属性spring: application: name: mall-order cloud: nacos: discover 阅读全文
posted @ 2022-05-15 19:10 花心大萝卜li 阅读(888) 评论(0) 推荐(0)
摘要: 当我们修改yml 中的配置时候 需要重启服务 浪费时间 我们可以把配置放到nacos中 这样不需要重启服务也可以动态刷新 首先添加对应的依赖,因为其他的微服务也需要向配置中心中获取配置信息,所以对应的依赖我们添加在了commons模块中 看效果 <dependency> <groupId>com.a 阅读全文
posted @ 2022-05-15 18:33 花心大萝卜li 阅读(153) 评论(0) 推荐(0)
摘要: openFegin是声明试的调用组件 本事是ribbon封装实现的 首先在brandController @RequestMapping("/all") public R queryAllBrand(){ BrandEntity brandEntity = new BrandEntity(); br 阅读全文
posted @ 2022-05-15 16:21 花心大萝卜li 阅读(78) 评论(0) 推荐(0)
摘要: docker pull nacos/nacos-server:1.4.2这里如果拉取镜像速度较慢可以修改 vim /etc/docker/daemon.json { "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn", "https:/ 阅读全文
posted @ 2022-05-15 14:57 花心大萝卜li 阅读(283) 评论(0) 推荐(0)
摘要: git上新建仓库 创建的父工程导入到idea中 1 直接下载后导入 2 通过idea直接克隆 idea 安装插件gitee 生成私人令牌链接idea 记得要应用 克隆项目 克隆成功 阅读全文
posted @ 2022-05-13 18:08 花心大萝卜li 阅读(25) 评论(0) 推荐(0)
摘要: https://github.com/git-for-windows/git/releases/download/v2.36.1.windows.1/Git-2.36.1-64-bit.exe 下载完git 后右击 git bash git config --global user.name "xx 阅读全文
posted @ 2022-05-13 17:44 花心大萝卜li 阅读(35) 评论(0) 推荐(0)
摘要: 拉取Redis最新版本镜像 docker pull redis 先创建对应的Redis的映射配置文件 mkdir -p /mydata/redis/conf拷贝配置文件 到redis.conf touch /mydata/redis/conf/redis.conf 创建容器命令 docker run 阅读全文
posted @ 2022-05-13 15:55 花心大萝卜li 阅读(539) 评论(0) 推荐(0)
摘要: 启动docker服务 sudo systemctl start docker 查看docker的版本 sudo docker version 配置阿里云的镜像地址: yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/l 阅读全文
posted @ 2022-05-13 15:41 花心大萝卜li 阅读(148) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 35 下一页