上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 48 下一页
摘要: 接口 @Component @Aspect public class CacheAspect { @Autowired private RedisTemplate redisTemplate; @Pointcut("@annotation(com.jm.cache.redis.annotation. 阅读全文
posted @ 2020-09-19 10:16 李荣先辈Java 阅读(152) 评论(0) 推荐(0) 编辑
摘要: config @Configuration // @EnableCaching @EnableAspectJAutoProxy // 开启AOP自动代理 public class AppConfig { @Value("${spring.redis.host}") String host; @Val 阅读全文
posted @ 2020-09-18 23:35 李荣先辈Java 阅读(182) 评论(0) 推荐(0) 编辑
摘要: config @Configuration // public class AppConfig { @Value("${spring.redis.host}") String host; @Value("${spring.redis.port}") int port; // 创建对象,spring托 阅读全文
posted @ 2020-09-18 21:40 李荣先辈Java 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1、 @Configuration // public class AppConfig { // 创建对象,spring托管 <bean ... @Bean public JedisPool jedisPool() { JedisPool jedisPool = new JedisPool("loc 阅读全文
posted @ 2020-09-18 13:44 李荣先辈Java 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-16 17:42 李荣先辈Java 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 一、Redis支持的数据类型? String字符串: 格式: set key value string类型是二进制安全的。意思是redis的string可以包含任何数据。比如jpg图片或者序列化的对象 。 string类型是Redis最基本的数据类型,一个键最大能存储512MB。 Hash(哈希) 阅读全文
posted @ 2020-09-16 15:10 李荣先辈Java 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Java 基本数据类型 : https://www.cnblogs.com/LiaHon/p/11043238.html 序列化 : https://www.cnblogs.com/Jomini/p/12460994.html String,Stringbuffer(安全), Stringbuild 阅读全文
posted @ 2020-09-16 13:56 李荣先辈Java 阅读(311) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/andy-zhou/p/5327288.html https://www.cnblogs.com/Darrenblog/p/10712125.html 阅读全文
posted @ 2020-09-15 15:07 李荣先辈Java 阅读(126) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/hotthought/article/details/82987428 阅读全文
posted @ 2020-09-15 14:56 李荣先辈Java 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 思路(https://www.jianshu.com/p/30f42a9fcca3) 1、先用 查看cpu 占用最高的程序,命令 top -c 2、使用top -H -p PID 命令查看对应进程是哪个线程占用CPU过高 3.使用 jstack -l PID > a 命令打印出这个进程的线程栈并输入 阅读全文
posted @ 2020-09-15 14:52 李荣先辈Java 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 48 下一页