
项目开发问题解决
好人好事代表-
这个作者很懒,什么都没留下…
展开
-
kafka-connect mysql debeziem时区问题,时间格式化,时间转换
使用功能debeziem的kafka-connect-mysql进行抽取数据时,对于时间字段 date,dateTIme,默认是将字段的值转成时间戳。这样某些情况可能不符合需求。可以使用TimestampConverter进行时间格式转换。 "transforms.tsFormat1.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value", "transforms.tsFormat1.target.type": "原创 2022-03-04 17:41:49 · 3829 阅读 · 0 评论 -
elasticsearch ES restclient设置搜索不存在索引时不报错。
有时候搜索多个索引的时候,有的索引不存在,我希望忽略调传入参数中的不存在的索引。可以添加如下参数,这样ES不会返回错误信息。SearchRequest searchRequest = new SearchRequest(indices, searchSourceBuilder);searchRequest.indicesOptions(IndicesOptions.lenientExpandOpen());...原创 2022-02-24 10:47:57 · 1696 阅读 · 0 评论 -
JPA 报错 Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
现象 2021-11-22 09:18:44.497 [http-nio-27601-exec-10] [584644b90744af1f,,584644b90744af1f,1561] ERROR o.h.i.ExceptionMapperStandardImpl - HHH000346: Error during managed flush [Row was updated or deleted by another transaction (or unsaved-value mapping原创 2021-11-22 12:05:36 · 1865 阅读 · 0 评论 -
JPA Could not open JPA EntityManager for transaction; Already value xxx for key xxx bound to thread
使用spring data JPA 保存数据时报错org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.Connection原创 2020-12-02 09:33:06 · 2914 阅读 · 0 评论 -
springboot项目 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
此问题是本人项目中遇到的问题,提供参考。本人使用的是Mac电脑,同事使用Windows电脑,对与mybatis的配置使用如下格式,在同事的电脑上运行正常,在我的电脑上运行会报错org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)mybatis: mapperLocations: - classpath*:/mapper/*Mapper.xml - classpath*:/m原创 2020-07-31 23:33:12 · 225 阅读 · 0 评论