Context initialization failed 异常解决

昨天遇到此问题,在网上搜了很多,仍没解决,遇到问题不一样解决也不一样,把我的错误分享,希望以后不再犯!

Error creating bean with name 'departC' defined in file [F:\myeclipse\.metadata\.me_tcat85\webapps\crm1\WEB-INF\classes\crm\controller\DepartC.class]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError等等

如图

在多表联查返回映射写错了只需把resultType="pos"改为resultMap="pos"就可以了;

下面错误截屏:

猜你喜欢

转载自blog.csdn.net/Hello_word_2/article/details/82686233