2017-06-08 14:48:15,120 [localhost-startStop-1] [org.springframework.web.context.support.XmlWebApplicationContext]-[WARN] Exception encountered during context initialization - cancelling refresh attemptorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.SqlSessionFactoryBean#0' defined in file [D:\workspace\three\taotao-manager\taotao-manager-web\target\classes\spring\applicationContext-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.github.pagehelper.PageHelper'.? Cause: java.lang.ClassNotFoundException: Cannot find class: com.github.pagehelper.PageHelper?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)?? ?at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:743)?? ?at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)?? ?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)?? ?at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)?? ?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)?? ?at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)?? ?at java.util.concurrent.FutureTask.run(Unknown Source)?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)?? ?at java.lang.Thread.run(Unknown Source)C
maven項(xiàng)目中org.mybatis.spring.SqlSessionFactoryBean未找到?怎么解決?
飯團(tuán)子力拔山兮氣蓋世
2017-06-08 14:59:59