spring3+mybatis3集成,部署上tomcat6服务启动报异常,注册别名失败,实体类找不到 10
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sql...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file ??? applicationContext-common.xml]: Invocation
of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested
exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias
for 'Student'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mbt.model.Student 展开
of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested
exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias
for 'Student'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mbt.model.Student 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询