出现错误,找不到实体类:
Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in file
[D:\apache-tomcat-8.0.43\wtpwebapps\IdentifyServer\WEB-INF\classes\config\spring-common.xml]: Cannot resolve reference to bean 'sqlSessionFactory'
while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in file [D:\apache-tomcat-8.0.43\wtpwebapps\IdentifyServer\WEB-INF\classes\config\spring-common.xml]:
Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource:
class path resource [config/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class.
Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.mtqg.identify.expertServer.domain.Expert'.
Cause: java.lang.ClassNotFoundException: Cannot find class: com.mtqg.identify.expertServer.domain.Expert
解决:换一个工作目录重新导入该工程。不清楚是哪个编译文件出错了。