logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

多线程事务回滚

场景项目需要 导入一批数据,对数据进行切割,用多线程跑。问题点方法上增加@Transactional,对多线程无效,发生异常,子线程不会回滚,即使在子线程中增加@Transactional。原因:线程不归spring容器管理,也就不指望通知回滚了。上代码1.将大数据进行切割// apache自带切割api, num是对应想要切几段ListUtils.partition(list, num);2、使

#java#spring boot
ERROR: column “xxx“ is of type date but expression is of type character varying

问题### Cause: org.postgresql.util.PSQLException: ERROR: column "take_effect_start_time" is of type date but expression is of type character varying建议:You will need to rewrite or cast the expression.位置:

#postgresql#数据库#sql
暂无文章信息