编程语言-周排行
java.time.format.DateTimeParseException: Text '2019-10-11 12:30:30' could not be parsed at index 10 at java.time.format.DateTimeFormatter.parseResolve ...
分类:编程语言 时间:2019-11-12 14:32:39 收藏:0 阅读:1024
1.异常详情: 2.异常分析: 从异常的详情中看出:companyService未找到,出现这种情况的愿意可能是companyServiceImpl类没有交给IOC容器管理,但是经过我已经在该类上打了@Service的注解。 经过翻天覆地的查找,终于发现: 原因竟然是将@Service注解的包导错了 ...
分类:编程语言 时间:2019-11-19 11:17:49 收藏:0 阅读:382
https://cloud.tencent.com/developer/article/1407640 https://www.baeldung.com/register-servlet ...
分类:编程语言 时间:2019-11-22 12:28:12 收藏:0 阅读:234
1.fastjson List转JSONArray List<T> list = new ArrayList<T>(); JSONArray array= JSONArray.parseArray(JSON.toJSONString(list)); 2.fastjson JSONArray转List ...
分类:编程语言 时间:2019-11-25 22:43:31 收藏:0 阅读:455
@Aspectpublic class AopTest { @Around(value = "@annotation(MyAnnotation)") public void testAnnotion(ProceedingJoinPoint joinPoint){ try { ThreadLocal< ...
分类:编程语言 时间:2019-11-26 11:11:17 收藏:0 阅读:712
In [1]: a = 5.026 In [2]: b = 5.000 In [3]: round(a,2) Out[3]: 5.03 In [4]: round(b,2) Out[4]: 5.0 In [5]: '%.2f' % a Out[5]: '5.03' In [6]: '%.2f' % ...
分类:编程语言 时间:2019-11-27 12:42:05 收藏:0 阅读:595
方式1:elasticsearch: nodes: xxx.xxx.xxx.xxx:9200,xxx.xxx.xxx.xxx:9200,xxx.xxx.xxx.xxx:9200 schema: http max-connect-total: 100 max-connect-per-route: 50 ...
分类:编程语言 时间:2019-11-30 00:15:06 收藏:0 阅读:1343
java 8 去重和排序 排序的方法 List<Integer> lists = Arrays.asList(1,1,2,3); // 升序 lists.sort(Comparator.comparing(Integer::intValue)); // 降序 lists.sort(Comparato ...
分类:编程语言 时间:2019-11-30 23:23:36 收藏:0 阅读:597
let arr = [11, 11, 2, 2, 5, 5, 5, 5, 3]; //创建一个map,把每个数字和其个数相对应 let countObj = {}; for (i = 0; i <= arr.length - 1; i++) { let v = arr[i]; if (countOb ...
分类:编程语言 时间:2019-12-01 14:54:35 收藏:0 阅读:244
今天遇到requests 请求的一种新情况,请求方法 multipart/form-data。下面提供两种解决办法。 第一种 第二种 from urllib3 import encode_multipart_formdata import requests data = {"districtId": ...
分类:编程语言 时间:2019-12-05 13:06:30 收藏:0 阅读:746
使用 httpclient.4.5.6 springboot 2.0.8RELEASE RetryExec.java CloseableHttpResponse execute() try { return this.requestExecutor.execute(route, request, c ...
分类:编程语言 时间:2019-12-05 20:52:36 收藏:0 阅读:479
mybatis-spring-boot-starter ...
分类:编程语言 时间:2019-12-06 09:29:18 收藏:0 阅读:529
项目做国际化,是离不开语言包的en.json、zh-CN.json等等。难道要一个一个json文件的写吗???不!!!只要我们写在excel里,然后用nodejs导出我们需要的语言包就可以了!这样大大节省了开发时间,下面是我写的一个到语言包的脚本 , 需要可以去我的github下载 ...
分类:编程语言 时间:2019-12-09 17:52:36 收藏:0 阅读:480
synchronized在java中是一个关键字,但是在kotlin中是一个内联函数。假如分别在java和kotlin代码锁住同一个对象,会发生什么呢,今天写了代码试了试。首先定义people类12345678910111213public class { public void () { for ... ...
分类:编程语言 时间:2019-12-10 00:46:14 收藏:0 阅读:743
在使用VSCODE编写C语言程序时,有时需要输出中文,而笔者遇到无法输出的情况,在此记录解决方案。 解决方案1.点击程序右下角的编码格式,我这里是GB 2312,此时程序无法输出中文。(若程序中中文较多,建议先另存一份文件)2.点击上方出现的“通过代码重新打开”3.点击UTF-84.修改可能出现乱码... ...
分类:编程语言 时间:2019-12-11 01:04:45 收藏:0 阅读:344
Description Resource Path Location TypeUnknown pom.xml /amq-provider line 1 Maven Configuration Problem 报错是因为版本不兼容问题,降低Springboot 版本或修改 maven 版本即可。 方法 ...
分类:编程语言 时间:2019-12-16 18:58:38 收藏:0 阅读:275
package com.fgy.demo; /** * 数组元素反转 */ public class demo05 { public static void main(String[] args) { int[] arr = {10, 20, 30, 40, 50}; System.out.prin ...
分类:编程语言 时间:2019-12-17 22:11:30 收藏:0 阅读:152
python3使用impala centos7 1、依赖环境部署 python3 环境部署略 ./pip3 install six ./pip3 install bit_array ./pip3 install thriftpy yum install gcc c++ python d ./pip3 ...
分类:编程语言 时间:2019-12-18 20:58:17 收藏:0 阅读:323
拦截器判断 拦截器截取到请求先进行判断,如果是OPTIONS请求的话,则放行 import com.alibaba.fastjson.JSON; import com.zp.demo.util.JwtHelperUtil; import org.apache.commons.lang.StringU ...
分类:编程语言 时间:2019-12-20 13:48:32 收藏:0 阅读:873
C语言Socket编程,实现两个程序间的通信 server和client通信流程图 在mooc上找到的,使用Socket客户端client和服务端server通信的流程图?? 服务端server 服务端需要 "两个"套接字 : 1.服务端套接字serverSocket 2.客户端connect连接请 ...
分类:编程语言 时间:2019-12-23 18:27:38 收藏:0 阅读:169
1989910010110225642
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!