当我使用Mybatis执行查询sql for oracle数据库时,它有时会抛出异常:
org.springframework.dao.RecoverableDataAccessException:
### Error querying database. Cause: java.sql.SQLRecoverableException: Closed Statement
### The error may exist in com/mapper/TestMapper.xml
### The error may involve com.mapper.TestMapper.getList
### The error occurred while handling results
### SQL: SELECT * FROM person_view
查询的xml配置:
<select id="getList" resultType="com.domain.TestBean" parameterType="map">
select * from person_view where rownum < #{limit}
</select>
当查询时间&gt; 60s,它会抛出异常,但我在mybatis配置和连接池配置中找不到任何查询时间限制。任何想法,提前谢谢。