升级到Spring 3.1.0和Java 17后出现数值溢出错误

ntjbwcob  于 2023-06-28  发布在  Spring
关注(0)|答案(1)|浏览(157)
Caused by: java.sql.SQLException: Numeric Overflow
    at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4161)
    at oracle.jdbc.driver.NumberCommonAccessor.getInt(NumberCommonAccessor.java:131)
    at oracle.jdbc.driver.GeneratedStatement.getInt(GeneratedStatement.java:171)
    at oracle.jdbc.driver.GeneratedScrollableResultSet.getInt(GeneratedScrollableResultSet.java:269)
    at com.zaxxer.hikari.pool.HikariProxyResultSet.getInt(HikariProxyResultSet.java)
    at org.hibernate.type.descriptor.jdbc.IntegerJdbcType$2.doExtract(IntegerJdbcType.java:88)
    at org.hibernate.type.descriptor.jdbc.BasicExtractor.extract(BasicExtractor.java:44)
    at org.hibernate.sql.results.jdbc.internal.JdbcValuesResultSetImpl.readCurrentRowValues(JdbcValuesResultSetImpl.java:267)
    ... 157 common frames omitted

请提出一些解决办法

ni65a41a

ni65a41a1#

我也遇到了同样的问题,但在升级到最近发布的Sping Boot 3. 1. 1后,它工作了。

相关问题