摘要:
redis查询 第1个数据库,而不是默认的第0个数据库 spring.redis.database = 1 默认: spring.redis.database = 0 car-test:0>get car:info:detail:id001 NULL ##切换数据库 car-test:0>selec 阅读全文
posted @ 2023-08-14 19:09
oktokeep
阅读(126)
评论(1)
推荐(0)
摘要:
mybatis insert foreach批量添加 int insertSelectiveBatch(List<ImageDetailEntity> myList); //写法1 <insert id="insertSelectiveBatch"> <foreach item="record" c 阅读全文
posted @ 2023-08-14 19:06
oktokeep
阅读(477)
评论(0)
推荐(0)
摘要:
引入feign注入报错 org.springframework.beans.factory.NoSuchBeanDefinitionException解决 [172.16.22.215] out: Caused by: org.springframework.beans.factory.NoSuch 阅读全文
posted @ 2023-08-14 19:05
oktokeep
阅读(220)
评论(0)
推荐(0)
摘要:
高德解析城市的分析,根据高德的经纬度获取城市cityCode http://restapi.amap.com/v3/geocode/regeo?output=json&location=110.517039,18.817948&key=替换成自己的高德KEY&extensions=base 1.高德 阅读全文
posted @ 2023-08-14 19:04
oktokeep
阅读(1558)
评论(0)
推荐(0)
摘要:
json字符串转换对象或列表,多了字段不会报错 //DEMO1 转换对象 应用 riskId public class Item { private String id; private String rate; public Item(String id, String rate) { this. 阅读全文
posted @ 2023-08-14 19:03
oktokeep
阅读(420)
评论(0)
推荐(0)
摘要:
LocalDateTime与LocalDate之间转换 //LocalDateTime转换LocalDate LocalDateTime now2 = LocalDateTime.now(); LocalDate ld2 = now2.toLocalDate(); System.out.printl 阅读全文
posted @ 2023-08-14 19:00
oktokeep
阅读(1894)
评论(0)
推荐(0)
浙公网安备 33010602011771号