Oracle 数据库, 使用的是 type: com.alibaba.druid.pool.DruidDataSource
显式配置了读取超时时间为 10 分钟:
connectionProperties: oracle.jdbc.ReadTimeout=600000
怎么 10 秒就报了下面的错了呢?
### Cause: java.sql.SQLRecoverableException: IO Error: Socket read timed out
194486 ; IO Error: Socket read timed out; nested exception is java.sql.SQLRecoverableException: IO Error: Socket read timed out
194487 at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:254)
194488 at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
194489 at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
194490 at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
194491 at com.sun.proxy.$Proxy57.selectList(Unknown Source)
194492 at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)
194493 at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:158)
194494 at com.baomidou.mybatisplus.core.override.MybatisMapperMethod