java. lang.Long cannot be cast to java. Lang. integer solution

Scenario:

Mybatis connecting to Oracle

report errors:

When the test increases, an error is reported lang.Long cannot be cast to java. lang.Integer; No error is reported after deletion.

Troubleshooting process:

1. First check the mapped SQL, print the SQL, and execute it directly on Oracle. There is no problem.

2. Observe the return result of the interface, find that the return value is defined as int, and find the problem.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>