上一页 1 2 3 4 5 6 7 ··· 26 下一页
摘要: 环境 java 1.8 springboot 2.3.0.RELEASE spring-cloud.version Hoxton.SR5 背景:实现 zuul->服务 的灰度发布,实现不同的用户固定访问不同的服务 思路:使用zuul的过滤器Filter,在路由的时候根据灰度规则,选择一个合适的服务 阅读全文
posted @ 2021-11-04 10:15 龙宇在天 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.在pom.xml中添加插件 mybatis-generator-maven-plugin <properties> <mysql.driver.version>8.0.27</mysql.driver.version> </properties> <build> <plugins> <plugi 阅读全文
posted @ 2021-11-02 17:15 龙宇在天 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1.在pom.xml中添加插件 mybatis-generator-maven-plugin <build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven 阅读全文
posted @ 2021-11-02 17:03 龙宇在天 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 表mygoods为商品表,cat_id为分类id,goods_id为商品id,status为商品当前的状态位(1:有效,0:无效)。 CREATE TABLE `mygoods` ( `goods_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `cat_ 阅读全文
posted @ 2021-10-28 16:07 龙宇在天 阅读(2735) 评论(0) 推荐(0) 编辑
摘要: docker下安装redis(不支持远程访问) 普通安装redis后,redis默认只能够本地连接(127.0.0.1),不能进行远程访问; 1、安装redis镜像 这里我们拉取官方的最新版本的镜像: $ docker pull redis:latest 2、查看redis镜像 $ docker i 阅读全文
posted @ 2021-10-25 14:28 龙宇在天 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: String code = String.valueOf((int)((Math.random() * 9 + 1) * Math.pow(10,5))); Math.random()表示的范围是 [0,1)的前闭后开区间,0~0.1,0.1~0.2的每个区间都是等概率的 Math.random() 阅读全文
posted @ 2021-10-25 09:30 龙宇在天 阅读(781) 评论(0) 推荐(0) 编辑
摘要: 1、win+R打开cmd窗口 2、netstat -ano 列出所有端口的情况,找到被占用的端口 3、输入命令netstat -aon | findstr "8080" 找对应的PID 4、输入命令 tasklist | findstr "21548" 查找具体的占用进程 5、打开资源管理器,找到P 阅读全文
posted @ 2021-06-22 10:51 龙宇在天 阅读(2469) 评论(0) 推荐(0) 编辑
摘要: 1.更换yum源 1).打开http://mirrors.aliyun.com,选择centos的系统,点击帮助 2).执行命令:yum install wget -y 3).改变某些文件的名称: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos 阅读全文
posted @ 2021-03-30 16:10 龙宇在天 阅读(89) 评论(0) 推荐(0) 编辑
摘要: springcloud 1.参考视频--尚硅谷周阳讲师 尚硅谷SpringCloud(H版&alibaba)框架开发教程 2.源码笔记 参考链接:https://github.com/acloudyh/springCloud 阅读全文
posted @ 2021-03-11 09:09 龙宇在天 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.在子项目pom.xml中导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <opti 阅读全文
posted @ 2021-03-02 17:03 龙宇在天 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 26 下一页
//右侧添加目录 //增加页面点击显示24字社会主义核心价值观