NutzCN Logo
问答 关于spring整合mybatis,添加PagerHelper插件,启动报错了
发布于 2530天前 作者 qq_6427b776 3185 次浏览 复制 上一个帖子 下一个帖子
标签:

<?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">



































<!-- <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="typeAliasesPackage" value="cn.com.orchard.plateform.module" />
    <property name="mapperLocations">
       <list>
         <value>classpath:cn/com/orchard/plateform/module/*/dao/*Mapper.xml
         </value>
       </list>
    </property>
    <property name="configLocation" value="classpath:mybatis-setting.xml"></property>
</bean>

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

2 回复

大大的提示都不看一眼的, 依然直接贴代码和日志

大大的提示都不看一眼的, 依然直接贴代码和日志

添加回复
请先登陆
回到顶部