- 博客(5)
- 收藏
- 关注
原创 Mybatis-Plus自定义类型转换配置后不生效
内置查询方法,发现类型转换没有生效,后面发现需要在类型添加注解。中自定义类型转换器,继承完。注意:如果用到了自定义。
2025-08-12 10:11:29
280
原创 警惕!SpringBoot分页中误用并行流导致的诡异问题
SpringBoot项目中误用并行流处理分页数据会导致数据顺序错乱和null值问题。原因在于parallelStream()破坏了数据顺序且转换方法可能非线程安全。建议改用顺序流,并确保转换方法线程安全:添加空值判断、避免共享变量、过滤无效数据。关键经验是分页场景应优先保证正确性而非性能,避免不必要的并行处理。通过回归顺序流和增强方法健壮性,可彻底解决这类分页异常问题。
2025-07-23 17:42:47
299
原创 java.lang.IllegalArgumentException: object is not an instance of declaring class] with root cause
java.lang.IllegalArgumentException: object is not an instance of declaring class] with root cause
2023-07-11 22:39:40
1524
原创 MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail
MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !
2022-10-20 09:28:57
1518
原创 Failed to instantiate [org.springframework.data.redis.connection.jedis.JedisConnectionFactory]
Failed to instantiate [org.springframework.data.redis.connection.jedis.JedisConnectionFactory]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: redis/clients/jedis/util/Pool
2022-09-22 09:52:04
1706
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅