摘要: 1、引入jar包 <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.13.4</version> </dependency> 2、增加Configuration类 @Co 阅读全文
posted @ 2020-09-18 19:42 介寒食 阅读(4756) 评论(0) 推荐(1) 编辑
摘要: @Configuration @EnableAsync public class ExecutePoolConfig { /** * 核心线程数 */ @Value("${taskThreadPool.corePoolSize}") private int corePoolSize; /** * 最 阅读全文
posted @ 2020-09-18 14:12 介寒食 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 1、引入jar包 <slf4j.version>1.7.30</slf4j.version> <logback.version>1.2.3</logback.version> <!-- log4j --> <dependency> <groupId>org.slf4j</groupId> <arti 阅读全文
posted @ 2020-09-18 11:15 介寒食 阅读(969) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.da 阅读全文
posted @ 2020-08-05 17:56 介寒食 阅读(1095) 评论(1) 推荐(0) 编辑
摘要: var filename = 'test.xlsx'; var xhr = new XMLHttpRequest(); xhr.open('POST', downloadExcel, true); xhr.setRequestHeader("Content-Type", "application/j 阅读全文
posted @ 2020-04-03 16:12 介寒食 阅读(2872) 评论(0) 推荐(1) 编辑
摘要: Lambda用到了JDK8自带的一个函数式接口Comparator<T>。 准备一个Apple类 public class Apple { private int weight; private String color; public Apple(){} public Apple(int weig 阅读全文
posted @ 2020-04-01 10:56 介寒食 阅读(1945) 评论(0) 推荐(0) 编辑
摘要: (1)序列化 即js中的Object转化为字符串 1.使用toJSONString var last=obj.toJSONString(); //将JSON对象转化为JSON字符 2.使用stringify var last=JSON.stringify(obj); //将JSON对象转化为JSON 阅读全文
posted @ 2020-03-24 10:56 介寒食 阅读(675) 评论(0) 推荐(0) 编辑
摘要: map.forEach((key, value) -> { System.out.println(key + ":" + value); }); 阅读全文
posted @ 2020-03-09 10:35 介寒食 阅读(505) 评论(0) 推荐(0) 编辑
摘要: List<Testcl> test(List<String> list); <select id="test" resultMap="Model"> select * from t_test where n_yx = 1 and c_id in <foreach collection="list" 阅读全文
posted @ 2020-03-02 17:59 介寒食 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/godtrue/p/4333262.html 阅读全文
posted @ 2020-03-01 15:29 介寒食 阅读(578) 评论(0) 推荐(0) 编辑