Home > Database > Mysql Tutorial > mybatis循环取序列,值相同问题处理

mybatis循环取序列,值相同问题处理

WBOY
Release: 2016-06-07 15:59:39
Original
1718 people have browsed it

猜是缓存原因,因为代码肯定没问题,但是不管怎么查都是同一个 select id=querySeq resultType=java.lang.Long SELECT SEQ_OR_TEMP_DETAIL.NEXTVAL FROM DUAL /select 后来增加useCache=false flushCache=true 禁用mybatis缓存后成功增长序列 只写入useCache

猜是缓存原因,因为代码肯定没问题,但是不管怎么查都是同一个值


后来增加useCache="false" flushCache="true"

禁用mybatis缓存后成功增长序列

只写入useCache="false"不管用

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template