java.lang.NoClassDefFoundError: Could not initialize class 后面是类的全限定名
原因:1.MyBatis的配置文件mybatis-config.xml中的mapper中的resource的路径错误
2.MyBatis的配置文件UserMapper.xml中的<select>中的resultType类的全限定名写错
java.lang.NoClassDefFoundError: Could not initialize class 后面是类的全限定名
原因:1.MyBatis的配置文件mybatis-config.xml中的mapper中的resource的路径错误
2.MyBatis的配置文件UserMapper.xml中的<select>中的resultType类的全限定名写错
转载于:https://my.oschina.net/u/3721669/blog/1560847