NutzCN Logo
问答 关于spring整合mybatis,添加pageHelper插件的问题?
发布于 2561天前 作者 qq_6427b776 2653 次浏览 复制 上一个帖子 下一个帖子
标签:

mybatis-setting.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">



































applicationContext-mybatis.xml






classpath:cn/com/orchard/plateform/module/*/dao/*Mapper.xml




启动报错信息如下
WARN 2017-12-18 16:52:48 localhost-startStop-1 [AbstractBeanFactory.java-1524] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ipSectionBeanMapper' defined in file [D:\developer\tools\server\apache-tomcat-8.0.47-windows-x64\apache-tomcat-8.0.47\conf\wtpwebapps\Orchard\WEB-INF\classes\cn\com\orchard\plateform\module\website\dao\IpSectionBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-mybatis.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.github.pagehelper.parser.impl.AbstractParser
WARN 2017-12-18 16:52:48 localhost-startStop-1 [AbstractBeanFactory.java-1524] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSiteBeanMapper' defined in file [D:\developer\tools\server\apache-tomcat-8.0.47-windows-x64\apache-tomcat-8.0.47\conf\wtpwebapps\Orchard\WEB-INF\classes\cn\com\orchard\plateform\module\website\dao\WebSiteBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-mybatis.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.github.pagehelper.parser.impl.AbstractParser
WARN 2017-12-18 16:52:48 localhost-startStop-1 [AbstractBeanFactory.java-1524] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysParamBeanMapper' defined in file [D:\developer\tools\server\apache-tomcat-8.0.47-windows-x64\apache-tomcat-8.0.47\conf\wtpwebapps\Orchard\WEB-INF\classes\cn\com\orchard\plateform\module\sysconf\dao\SysParamBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-mybatis.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.github.pagehelper.parser.impl.AbstractParser
WARN 2017-12-18 16:52:48 localhost-startStop-1 [AbstractBeanFactory.java-1524] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSiteBeanMapper' defined in file [D:\developer\tools\server\apache-tomcat-8.0.47-windows-x64\apache-tomcat-8.0.47\conf\wtpwebapps\Orchard\WEB-INF\classes\cn\com\orchard\plateform\module\website\dao\WebSiteBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-mybatis.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.github.pagehelper.parser.impl.AbstractParser

求各位大神指导

0 回复
添加回复
该帖子已被锁定,不能回复.
回到顶部