04 2022 档案
摘要:一、AspectJ和Spring AOP的区别 在spring框架中有一个主要的功能就是AOP,AOP(Aspect OrientedProgramming, 面向切面/方面编程) 旨在从业务逻辑中分离出来横切逻辑【eg:性能监控、日志记录、权限控制等】,提高模块化,即通过AOP解决代码耦合问题,让
阅读全文
摘要:在Java中实现MySQL的Compress()和Uncompress()算法 MySQL COMPRESS()函数用于压缩字符串。 COMPRESS()函数返回的值是二进制字符串。 COMPRESS()函数将非空字符串存储为未压缩字符串的four-byte长度,然后是压缩字符串。如果字符串以空格结
阅读全文
摘要:RocketMQ 简单实践 RocketMQ官网:https://rocketmq.apache.org/ 下载地址:https://rocketmq.apache.org/dowloading/releases/ 下载源码 Source:https://archive.apache.org/dis
阅读全文
摘要:Spring Events--观察者模式在spring中的应用 参考: https://www.baeldung.com/spring-events https://www.runoob.com/design-pattern/observer-pattern.html https://www.cnb
阅读全文
摘要:redis 分布式锁简单实践 参考: https://zhuanlan.zhihu.com/p/129740066 https://my.oschina.net/wangnian/blog/668830 https://www.cnblogs.com/0201zcr/p/5942748.html h
阅读全文