摘要: 下载解压 打开环境变量 新建MAVEN_HOME 路径为maven根文件夹 PATH 末尾添加 %MAVEN_HOME%\bin; 命令行 mvn -v 检查 添加网易maven镜像库 阿里的也可以 不过比较而言网易一向是闷声发大财的 很低调而且做得很用心 maven目录下conf setting. 阅读全文
posted @ 2018-03-20 11:03 无敌战魔i 阅读(106) 评论(0) 推荐(0) 编辑
摘要: ji接上文 ribbon做请求分发负载均衡 ribbon 配置: 启动类 controller 访问http://localhost:9999/consumer 发现 显示本service的端口是8082or8081 说明成功 默认是轮询可以自己设置随机等其他配置 阅读全文
posted @ 2018-01-21 11:53 无敌战魔i 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一个eureka会出现单点故障 这里整两个 eureka--1 application.yml: eureka-2 service 改下端口 随便来几个 访问http://localhost:8888 or 8889 都会出现注册的service和eureka自身和另一个eureka 阅读全文
posted @ 2018-01-20 12:20 无敌战魔i 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 有的人不知道导什么包 什么版本好 可能教程版本十几根本不能用 这里建议直接用idea生成 避免麻烦 eureka-sever application.yml 启动类上加上@EnableEurekaServer 即可启动 访问 http:localhost:8888 出现eureka界面 eureka 阅读全文
posted @ 2018-01-20 11:44 无敌战魔i 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 测试 通过测试主键判断数据源是否配置成功 数据库 阅读全文
posted @ 2017-11-04 11:07 无敌战魔i 阅读(8758) 评论(0) 推荐(1) 编辑
摘要: 冒泡.public class insortSort { public static void main(String[] args) { int[] arr = {12, 3, 4, 55, 36, 17, 45, 18, 36}; for (int i = 1; i = 0; j--) { if (arr[i] = 0 ... 阅读全文
posted @ 2017-07-20 21:29 无敌战魔i 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 懒汉 \ 阅读全文
posted @ 2017-07-20 17:47 无敌战魔i 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package book; /** * @Auther tangzekai * @Description: * @Date:Created in 11:09 2017/7/3 * @Modified By: */ public class ChooseSort { public static void selectSort(int[] a) { int i,t... 阅读全文
posted @ 2017-07-03 15:54 无敌战魔i 阅读(120) 评论(0) 推荐(0) 编辑
摘要: java学习笔记 阅读全文
posted @ 2017-06-14 14:56 无敌战魔i 阅读(197) 评论(0) 推荐(0) 编辑
摘要: ssm-demo org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:./top/ai... 阅读全文
posted @ 2017-06-07 17:40 无敌战魔i 阅读(164) 评论(1) 推荐(0) 编辑