上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: CentOS7 下 CentOS 下编译过,但没使用 so 文件执行过代码 编译工具安装 yum -y install gcc automake libtool m4 autoconf dos2unix dos2unix 主要是处理 win 下和 linux 换行不一致导致的编译报错。如果不是在 W 阅读全文
posted @ 2024-01-10 23:42 YangDanMua 阅读(20) 评论(0) 推荐(0) 编辑
摘要: public class PageHelper extends PageMethod implements Dialect, BoundSqlInterceptor.Chain { PageMethod 分页静态方法 public abstract class PageMethod { protec 阅读全文
posted @ 2024-01-06 10:41 YangDanMua 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Mybatis-Plus结合lambda表达式获取entity的数据库字段名 代码 @Component public class ColumnResolver<T> extends AbstractLambdaWrapper<T, ColumnResolver<T>> { /** * 这个不需要, 阅读全文
posted @ 2024-01-05 10:41 YangDanMua 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 参考:mica 项目 如梦技术 / mica 监听事件的方式 事件 public class DemoEvent extends ApplicationEvent { public DemoEvent(Object source) { super(source); } } Listener publ 阅读全文
posted @ 2023-12-01 21:31 YangDanMua 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 概念 彻底弄懂GMT、UTC、时区和夏令时 java中的时间与时区:LocalDateTime和Date UTC public static Instant java.time.Instant#now() { return Clock.systemUTC().instant(); } UTC(Coo 阅读全文
posted @ 2023-11-23 20:45 YangDanMua 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 参考:Spring AOP何时使用JDK动态代理?何时使用Cglib ?默认是哪种? 参考:Spring AOP源码分析-代理方式的选择 JDK 和 CGLIB 选择 DefaultAopProxyFactory#createAopProxy public AopProxy createAopPro 阅读全文
posted @ 2023-11-23 20:17 YangDanMua 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 简单搭建 Feign 框架 parent <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependenci 阅读全文
posted @ 2023-11-23 19:18 YangDanMua 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 参考:springmvc--8-ServletModelAttributeMethodProcessor兜底处理@ModelAttribute注解和无注解 继承关系比较简单,两个接口处理 Controller 参数和返回值的,ModelAttributeMethodProcessor 本身也不是一个 阅读全文
posted @ 2023-11-23 16:53 YangDanMua 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 参考:Spring环境中正确关闭线程池的姿势 参考:Spring Shutdown Hook工作机制揭秘 参考:线程池10:线程池的5种状态 JDK 线程池的三个方法 shutdown 将会拒绝新任务提交到线程池;待执行的任务不会取消,正在执行的任务也不会取消,将会继续执行直到结束 拒绝新任务提交( 阅读全文
posted @ 2023-11-23 14:20 YangDanMua 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: 普通的 SpringBoot 的默认 AOP 模式只能适用于 public 的方法,且内部调用不生效(需要使用AopContext.currentProxy()获取代理类),且对于 Spring 内部的类/第三方类且没有放入 Spring 管理(直接 new 来使用)的那种无效。 参考: 详解 Sp 阅读全文
posted @ 2023-11-20 22:00 YangDanMua 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页