500 cannot be cast to javax.xml.registry.infomodel

Posted goblinn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了500 cannot be cast to javax.xml.registry.infomodel相关的知识,希望对你有一定的参考价值。

在使用mybatis的时候每次一调用一个返回User类型的sql时,总是会报错如下:

com.xx.all.domain.User cannot be cast to javax.xml.registry.infomodel.User

百思不得其解,然后才发现

1 import javax.xml.registry.infomodel.User;
2 
3 import org.springframework.stereotype.Repository;

这里导错包了,

更正成自己的User实体类的包就行了。

哎,写bug简直一流。

以上是关于500 cannot be cast to javax.xml.registry.infomodel的主要内容,如果未能解决你的问题,请参考以下文章

cannot be cast to

cannot be cast to javax.servletFilter

cannot be cast to javax.servletFilter

为啥会出现cannot be cast to java.lang.String

cannot be cast to android.support.v4.app.Fragment

com.alibaba.fastjson.JSONArray cannot be cast to java.lang.String