上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: /** * 对象转化(自动构造新对象,并复制相同属性的数据) * * @param o * @param targetC * @return */@SuppressWarnings("unchecked")public static <T> T parseObject(Object o, Class 阅读全文
posted @ 2021-06-01 16:01 猿码哥 阅读(96) 评论(0) 推荐(0) 编辑
摘要: springboot对单个文件上传是有大小限制的 修改application.porperties文件,添加这两行代码即可: spring.servlet.multipart.max-file-size =10Mb spring.servlet.multipart.max-request-size 阅读全文
posted @ 2021-05-29 11:29 猿码哥 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #2 wit and (tucc.open_user_id = #{loginId} /* and (tucc.open_user_id 阅读全文
posted @ 2021-03-04 12:00 猿码哥 阅读(4723) 评论(0) 推荐(0) 编辑
摘要: @Overridepublic AnalysisPO analysis(String type, String cantonName, String cantonId) { long t1 = System.currentTimeMillis(); StringBuffer redisKey = n 阅读全文
posted @ 2021-02-27 14:21 猿码哥 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Semaphore是一种在多线程环境下使用的设施,该设施负责协调各个线程,以保证它们能够正确、合理的使用公共资源的设施,也是操作系统中用于控制进程同步互斥的量。 Semaphore是一种计数信号量,用于管理一组资源,内部是基于AQS的共享模式。它相当于给线程规定一个量从而控制允许活动的线程数。 Se 阅读全文
posted @ 2021-01-16 17:48 猿码哥 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 创建新对象 BigDecimal BigDecimal(double d); //不允许使用,精度不能保证 BigDecimal BigDecimal(String s); //常用,推荐使用 static BigDecimal valueOf(double d); //常用,推荐使用 2 方法 阅读全文
posted @ 2021-01-12 17:09 猿码哥 阅读(95) 评论(0) 推荐(0) 编辑
摘要: @Override@Scheduled(cron = "0 0 0 * * ?")// 一天请求一次public boolean queryAllParkInfo() { log.info("宜停车停车场信息查询开始:" + DateUtil.format(new Date(), "yyyy-MM- 阅读全文
posted @ 2020-12-31 08:29 猿码哥 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 在spring boot 解决 @RequestBody只能读取一次的问题时 参数使用的传递方式是map 需要签名验证 所以 sign时 用的也是map 导致参数以@RequestBody 传递map参数时 sign验证后的map参数不能进去controller中取到值 先是利用拦截器做的 相对比较 阅读全文
posted @ 2020-09-30 17:54 猿码哥 阅读(517) 评论(0) 推荐(0) 编辑
摘要: import com.alibaba.fastjson.JSON;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.yicheplatform.shenzhen.constant.RedisCo 阅读全文
posted @ 2020-08-13 21:09 猿码哥 阅读(1656) 评论(0) 推荐(0) 编辑
摘要: 1、put(H key, HK hashKey, HV value) 新增hashMap值。 redisTemplate.opsForHash().put("hashValue","map1","map1-1"); redisTemplate.opsForHash().put("hashValue" 阅读全文
posted @ 2020-08-09 12:24 猿码哥 阅读(14031) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页