错误描述(在日志里看)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [D:\Java\ssm-04\out\artifacts\ssm_04_war_exploded\WEB-INF\classes\mapper\AuthorMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [D:\Java\ssm-04\out\artifacts\ssm_04_war_exploded\WEB-INF\classes\mapper\AuthorMapper.xml]’. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘com.haina.com.haina.ssm.model.Author’. Cause: java.lang.ClassNotFoundException: Cannot find class: com.haina.com.haina.ssm.model.Author
直接解决办法
查看你的数据库有没有挂掉!!