笔记
whileLe
这个作者很懒,什么都没留下…
展开
-
IDEA中调出Run Dashboard
在idea中打开项目后,在.idea下的workplace.xml中找rundashborad然后在其中加入以下代码: <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> ...原创 2019-10-18 16:11:24 · 623 阅读 · 0 评论 -
java 发送http https请求
以下方法支持http和https的请求public static JSONObject httpPost(String url, String data,String token){ //post请求返回结果 DefaultHttpClient httpClient = new DefaultHttpClient(); JSONObject jso...原创 2019-08-15 15:12:58 · 126 阅读 · 0 评论 -
java8 list转map
List<T>转Map<S,T>Map<String,DemoEntity> map = stats.stream().collect(Collectors.toMap(DemoEntity::getKey, c -> c));List<T>转Map<S,T>(过滤重复key)Map<S...原创 2019-08-07 17:35:51 · 95 阅读 · 0 评论 -
docker 部署ElasticSearch 时遇到的错误
docker拉取镜像的时候报错Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)解决方案:把DNS...原创 2019-08-19 14:10:15 · 4229 阅读 · 1 评论 -
OCI runtime exec failed: exec failed: container_linux.go:348
使用git bash 工具进入到kafka时报错 OCI runtime exec failed: exec failed: container_linux.go:348,原命令如下:winpty docker exec -it kafka-0 /bin/bash一直进不到容器中,可以尝试以下命令:winpty docker exec -it kafka-0 bash...原创 2019-01-30 14:30:46 · 8416 阅读 · 0 评论 -
spring配置文件ApplicationContext.xml里面class等没有提示功能
**解决办法:**windows–>perference–>myeclipse–>files and editors–>xml–>xml files–>xml catalog,然后点击add,如下图: 进入spring的解压路径,找到spring-framework-4.2.0.RELEASE/schema/beans路径,选择spring-beans-2.5.xsd, 先不要关闭窗口,ke原创 2017-08-22 10:22:53 · 897 阅读 · 2 评论 -
学习之路⊙0⊙→学习之路 CnBlogsHomeNew PostAdmin idea新建maven项目时,mvn archetype:generate 速度缓慢
转载出处:http://www.cnblogs.com/lonelyxmas/p/5397305.html 1 现象:用IDEA新建maven项目,填写完各种参数,创建时,控制台卡在“[INFO] Generating project in Batch mode”处:同时,右下方状态栏处,显示创建过程仍在进行:2 原因IDEA根据maven archetype的本质,其实是执行mvn archet转载 2017-02-19 18:32:59 · 217 阅读 · 0 评论 -
第一次运行mvn compile时下载缓慢问题
maven确实是一个好东西,但是在国内下载官方仓库的jar却是个大问题,速度不敢恭维,现在oschina的国内maven镜像服务已关闭,无奈之下只能另寻门路。 今天突然发现了阿里云maven国内镜像,修改完以后速度飞一般的感觉,超赞,这个激动啊。。。 修改方法:在~/.m2目录下的settings.xml文件中,(如果该文件不存在,则需要从maven/conf目录下拷贝一份),找到标签,添加如下转载 2017-02-19 12:26:14 · 1348 阅读 · 3 评论