MyBatisのエラー

MyBatisのエラー

Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'クラス名'. Cause: java.lang.ClassNotFoundException: Cannot find class: クラス名

クラス名が正しいか確認します。

Error updating database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for

xmlファイルが本当に読み込まれているかを確認します。

org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

selectOneメソッドの戻り値が1件ではなく2件以上返ってきた時に出るエラーです。

Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for SQLID

重複してSQLIDを設定している際に起きるエラーです。

### Error updating database.  Cause: java.sql.DataTruncation: Data truncation

insert文で、変な値が入っている場合に発生するエラーです。

コメント

タイトルとURLをコピーしました