shiro整合spring求指点这个异常: [问题点数:100分,结帖人yaowanpengLiferay]

一键查看最优答案

确认一键查看最优答案?
本功能为VIP专享,开通VIP获取答案速率将提升10倍哦!
Bbs1
本版专家分:0
结帖率 94.12%
Bbs9
本版专家分:50529
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
优秀版主 优秀大版主
2015年8月优秀大版主
2015年9月优秀大版主
Blank
黄花 2015年2月 Java大版内专家分月排行榜第二
2014年3月 Java大版内专家分月排行榜第二
Blank
蓝花 2014年9月 Java大版内专家分月排行榜第三
2014年6月 Java大版内专家分月排行榜第三
2014年2月 Java大版内专家分月排行榜第三
2013年11月 Java大版内专家分月排行榜第三
2013年10月 Java大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs9
本版专家分:50529
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
优秀版主 优秀大版主
2015年8月优秀大版主
2015年9月优秀大版主
Blank
黄花 2015年2月 Java大版内专家分月排行榜第二
2014年3月 Java大版内专家分月排行榜第二
Blank
蓝花 2014年9月 Java大版内专家分月排行榜第三
2014年6月 Java大版内专家分月排行榜第三
2014年2月 Java大版内专家分月排行榜第三
2013年11月 Java大版内专家分月排行榜第三
2013年10月 Java大版内专家分月排行榜第三
Bbs4
本版专家分:1280
Bbs1
本版专家分:0
Bbs2
本版专家分:422
Bbs1
本版专家分:0
Bbs9
本版专家分:67989
版主
Blank
签到新秀 累计签到获取,不积跬步,无以至千里,继续坚持!
Blank
红花 2016年3月 Java大版内专家分月排行榜第一
2016年2月 Java大版内专家分月排行榜第一
2015年11月 Java大版内专家分月排行榜第一
2015年10月 Java大版内专家分月排行榜第一
2014年8月 Java大版内专家分月排行榜第一
2014年7月 Java大版内专家分月排行榜第一
2014年5月 Java大版内专家分月排行榜第一
Blank
黄花 2016年1月 Java大版内专家分月排行榜第二
2015年12月 Java大版内专家分月排行榜第二
2015年8月 Java大版内专家分月排行榜第二
2015年3月 Java大版内专家分月排行榜第二
2015年1月 Java大版内专家分月排行榜第二
2014年12月 Java大版内专家分月排行榜第二
2014年11月 Java大版内专家分月排行榜第二
2014年6月 Java大版内专家分月排行榜第二
2014年4月 Java大版内专家分月排行榜第二
2014年1月 Java大版内专家分月排行榜第二
2013年11月 Java大版内专家分月排行榜第二
Blank
蓝花 2015年9月 Java大版内专家分月排行榜第三
2015年6月 Java大版内专家分月排行榜第三
2015年5月 Java大版内专家分月排行榜第三
2015年2月 Java大版内专家分月排行榜第三
2014年3月 Java大版内专家分月排行榜第三
2013年12月 Java大版内专家分月排行榜第三
Bbs9
本版专家分:50529
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
优秀版主 优秀大版主
2015年8月优秀大版主
2015年9月优秀大版主
Blank
黄花 2015年2月 Java大版内专家分月排行榜第二
2014年3月 Java大版内专家分月排行榜第二
Blank
蓝花 2014年9月 Java大版内专家分月排行榜第三
2014年6月 Java大版内专家分月排行榜第三
2014年2月 Java大版内专家分月排行榜第三
2013年11月 Java大版内专家分月排行榜第三
2013年10月 Java大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs9
本版专家分:50529
版主
Blank
GitHub 绑定GitHub第三方账户获取
Blank
优秀版主 优秀大版主
2015年8月优秀大版主
2015年9月优秀大版主
Blank
黄花 2015年2月 Java大版内专家分月排行榜第二
2014年3月 Java大版内专家分月排行榜第二
Blank
蓝花 2014年9月 Java大版内专家分月排行榜第三
2014年6月 Java大版内专家分月排行榜第三
2014年2月 Java大版内专家分月排行榜第三
2013年11月 Java大版内专家分月排行榜第三
2013年10月 Java大版内专家分月排行榜第三
FeignClient注解及参数问题---SpringCloud微服务
一、前言 在用分布式架构SpringBoot的SpringCloud技术开发过程中,FeignClient 是一个常用的注解,且很重要的功能。 简单理解就是,分布式架构服务之间,各子模块系统内部通信的核心。 一般在一个系统调用另一个系统的接口时使用,如下: 注解 @FeignClient("XXX") public interface XX{ .... } 该注解一般创建在 i...
org.apache.shiro.session.InvalidSessionException: java.lang.IllegalStateException: getAttribute: Ses...
1.遇到以下<em>异常</em>,找了好长时间,终于解决,报的<em>异常</em>如下: 七月 07, 2017 3:02:16 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet [SpringMVC] in context with path [/IMP] threw exception [org.a...
Shiro权限配置错误There is no filter with name 'anno' to apply to chain
There is no filter with name 'anno' to apply to chain
mybatis异常
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): me.tspace.pm.dao.UserDao.getUser     at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:178)
Activiti工作流之异常处理一
SpringMVC + Activiti部署应用时出现文章最后的<em>异常</em>代码。这里说明一下,在部署应用时使用Spring自动部署流程。 首先,仔细检查各个Service的@Service标识是否都写上,没问题下一步。 然后,检查Acticiti的act_ge_property中的初始化数据是否存在,初始化数据库时该表中应该包含三条记录。如果没有则Spring在部署应用时自动部署流程,查询该表数据不
异常错误">如何解决Maven工程的"nested exception is java.lang.IllegalStateException"异常错误
现象:Web工程Login进去之后会不定时刷新页面.但系统不影响使用.输出Exception<em>异常</em>log. {"tag":"Maven_Test-pl","time":"2017/10/17
dubbo启动服务端报这个错,在线急等,麻烦大神帮忙看看
严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListener org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'testController': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.saic.ndms.base.api.DemoPurchaseService com.saic.ndms.base.web.controller.testController.demoPurchaseService; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'demoPurchaseService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.saic.ndms.base.api.DemoPurchaseService. No provider available for the service com.saic.ndms.base.api.DemoPurchaseService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=ndms-base-server&dubbo=2.8.4-cep1.0&interface=com.saic.ndms.base.api.DemoPurchaseService&methods=countByExample,getAllDemoPurchase&pid=6352&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1512003530155 to the consumer 192.168.202.1 use dubbo version 2.8.4-cep1.0 at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private com.saic.ndms.base.api.DemoPurchaseService com.saic.ndms.base.web.controller.testController.demoPurchaseService; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'demoPurchaseService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.saic.ndms.base.api.DemoPurchaseService. No provider available for the service com.saic.ndms.base.api.DemoPurchaseService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=ndms-base-server&dubbo=2.8.4-cep1.0&interface=com.saic.ndms.base.api.DemoPurchaseService&methods=countByExample,getAllDemoPurchase&pid=6352&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1512003530155 to the consumer 192.168.202.1 use dubbo version 2.8.4-cep1.0 at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ... 22 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'demoPurchaseService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.saic.ndms.base.api.DemoPurchaseService. No provider available for the service com.saic.ndms.base.api.DemoPurchaseService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=ndms-base-server&dubbo=2.8.4-cep1.0&interface=com.saic.ndms.base.api.DemoPurchaseService&methods=countByExample,getAllDemoPurchase&pid=6352&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1512003530155 to the consumer 192.168.202.1 use dubbo version 2.8.4-cep1.0 at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1517) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949) at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ... 24 more Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.saic.ndms.base.api.DemoPurchaseService. No provider available for the service com.saic.ndms.base.api.DemoPurchaseService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=ndms-base-server&dubbo=2.8.4-cep1.0&interface=com.saic.ndms.base.api.DemoPurchaseService&methods=countByExample,getAllDemoPurchase&pid=6352&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1512003530155 to the consumer 192.168.202.1 use dubbo version 2.8.4-cep1.0 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) at com.alibaba.dubbo.config.<em>spring</em>.ReferenceBean.getObject(ReferenceBean.java:65) at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 32 more
spring boot 整合shiro 前后端分离+权限不足异常捕获
  1.引入pom &amp;lt;!-- <em>shiro</em> <em>spring</em>. --&amp;gt; &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.apache.<em>shiro</em>&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;<em>shiro</em>-<em>spring</em>&amp;lt;/artifactId&amp;gt;...
springMVC+shiro异常处理总结
一、Spring MVC处理<em>异常</em>有3种方式:  (1)使用Spring-MVC提供的SimpleMappingExceptionResolver;  (2)实现Spring的<em>异常</em>处理接口HandlerExceptionResolver 自定义自己的<em>异常</em>处理器;  (3)使用@ExceptionHandler注解实现<em>异常</em>处理; Spring HandlerExceptionRes
异常 dubbo中provider和consumer加载异常 Zookeeper注册
<em>异常</em>如下 INFO zkclient.ZkEventThread - Starting ZkClient event thread.  INFO zkclient.ZkEventThread - Terminate ZkClient event thread.  INFO context.InheritableListableBeanFactory - Destroying singleto
dubbo中遇到的问题(一)
使用过程中遇到如下问题,因服务端启动后挂掉,客户端无法获取,解决方法是服务端一直都要活着: Exception in thread "main" org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'bsCustomerService': FactoryBean threw
shiro自定义realm中捕捉异常的问题
*** 我的java项目采用的技术架构是:SpringMVC+Mybatis+Shiro *** 在自定义的realm中检测密码的代码如下: if(checkPwd(credentials,encry
八。shiro序列化session失败,异常local class incompatible
我把session放在了数据库里,比如这样:但长时间未登录后,再次使用我记下的 JESESSIONID登录时,报错序列化失败和local class incompatible protected Serializable doCreate(Session session) { Serializable sessionId = super.doCreate(session)...
spring错误汇总
在学习<em>spring</em>过程中遇见了种种不同的<em>异常</em>错误,这里做了一下总结,希望遇见类似错误的同学们共勉一下。 1. 错误一 Error creating bean with name 'helloServiceImpl' defined in class path resource [<em>spring</em>-service.xml]: Error setting property values; neste...
Shiro创建FilterChain过程详解
在Shiro中,无认是认证还是权限控制都是通过过滤器来实现的,在应用中可能会配置很多个过滤器,但对于不同的访问请<em>求</em>所需要经过的过滤器肯定是不一样的,那么当发起一个请<em>求</em>时,到底会应用上哪些过滤器,对于我们使用Shiro就显示得格外重要;下面就来讲讲一个请<em>求</em>到底会经过哪些过滤器。 在Shiro中,确证一个请<em>求</em>会经过哪些过滤器是通过org.apache.<em>shiro</em>.web.filter.m...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
java.lang.IllegalStateException: Failed to load ApplicationContext at org.<em>spring</em>framework.test.conte
springboot+mybatis Caused by: org.apache.ibatis.builder.BuilderException:
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'xxx/xxx/xxxMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expec...
spring整合mybatis的异常解决。。。
运行tomcat是,总是报错:查找了很多资料,没找到原因: 2012-08-28 14:33:49,531 >> ERROR >> main >> >> : Context initializatio
Shiro异常:There is no filter with name
<em>异常</em>: java.lang.IllegalArgumentException: There is no filter with name 'anon/dologin.html=anon/static/**=anon/**=authc' to apply to chain [/login.html] in the pool of available Filters. Ensure a filter...
shiro登录认证出错
也不报错,就是输入用户名和密码之后一直返回的是原来的登录页面 这是我的<em>spring</em>-<em>shiro</em>-web.xml: <bea
spring老报错Unable to instantiate Configuration.
<em>spring</em>+MyBatis动态SQL查询写了一个测试方法老报错 ![图片说明](https://img-ask.csdn.net/upload/201602/10/1455084090_3743.png) ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); EmpDao dao = ctx.getBean(EmpDao.class); 这个配置文件老读不出来,不知道哪里的问题 ![图片说明](https://img-ask.csdn.net/upload/201602/10/1455084022_107565.png) ![图片说明](https://img-ask.csdn.net/upload/201602/10/1455084067_370565.png)
BeanCreationException: Error creating bean with name 'shiroFilter' defined in file
严重: <em>异常</em>将上下文初始化事件发送到类的侦听器实例.[org.<em>spring</em>framework.web.context.ContextLoaderListener] org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Filter' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.cache.config.internalCacheAdvisor': Cannot resolve reference to bean 'org.<em>spring</em>framework.cache.annotation.AnnotationCacheOperationSource#0' while setting bean property 'cacheOperationSource'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.cache.annotation.AnnotationCacheOperationSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.<em>shiro</em>.<em>spring</em>.security.interceptor.AuthorizationAttributeSourceAdvisor#0' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'mvcRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:479) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.<em>spring</em>framework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:235) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:703) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528) at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:479) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.cache.config.internalCacheAdvisor': Cannot resolve reference to bean 'org.<em>spring</em>framework.cache.annotation.AnnotationCacheOperationSource#0' while setting bean property 'cacheOperationSource'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.cache.annotation.AnnotationCacheOperationSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.<em>shiro</em>.<em>spring</em>.security.interceptor.AuthorizationAttributeSourceAdvisor#0' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'mvcRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.<em>spring</em>framework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:102) at org.<em>spring</em>framework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:88) at org.<em>spring</em>framework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:248) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1037) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1011) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:473) ... 57 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.<em>spring</em>framework.cache.annotation.AnnotationCacheOperationSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.<em>shiro</em>.<em>spring</em>.security.interceptor.AuthorizationAttributeSourceAdvisor#0' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'mvcRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:479) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 74 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.<em>shiro</em>.<em>spring</em>.security.interceptor.AuthorizationAttributeSourceAdvisor#0' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'mvcRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.<em>spring</em>framework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:102) at org.<em>spring</em>framework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:88) at org.<em>spring</em>framework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) at org.<em>spring</em>framework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:248) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1037) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1011) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:473) ... 79 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\work\kmddfxxt\out\artifacts\kmddfxxt\WEB-INF\classes\config\mfw-<em>spring</em>-components-<em>shiro</em>.xml]: Cannot resolve reference to bean 'mvcRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 96 more Caused by: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mvcRealm': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.<em>spring</em>framework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 106 more Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'loadWarningDataRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities) at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:923) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:804) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:558) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:432) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:395) at org.<em>spring</em>framework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:220) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1267) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1101) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 116 more ![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571608_902206.png)![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571625_956803.png)![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571633_738696.png)![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571651_482264.png)![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571697_252739.png)![图片说明](https://img-ask.csdn.net/upload/201911/12/1573571717_962603.png)
teamleaf整合shiro标签springboot启动报错
按照网上的方法,在pom添加了teamleaf的<em>shiro</em>标签支持,在ShiroConfiguration.java加入了 ``` @Bean public ShiroDialect <em>shiro</em>Dialect() { return new ShiroDialect(); } ``` 启动报错 2018-04-10 10:42:27.104 WARN 13524 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Dialect' defined in class path resource [com/lanyu/common/filter/ShiroConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [at.pollux.thymeleaf.<em>shiro</em>.dialect.ShiroDialect]: Factory method '<em>shiro</em>Dialect' threw exception; nested exception is java.lang.NoClassDefFoundError: org/thymeleaf/processor/attr/AbstractTextChildModifierAttrProcessor 2018-04-10 10:42:27.108 INFO 13524 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2018-04-10 10:42:27.127 WARN 13524 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43) 2018-04-10 10:42:27.138 INFO 13524 --- [ restartedMain] utoConfigurationReportLoggingInitializer : Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-04-10 10:42:27.151 ERROR 13524 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Dialect' defined in class path resource [com/lanyu/common/filter/ShiroConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [at.pollux.thymeleaf.<em>shiro</em>.dialect.ShiroDialect]: Factory method '<em>shiro</em>Dialect' threw exception; nested exception is java.lang.NoClassDefFoundError: org/thymeleaf/processor/attr/AbstractTextChildModifierAttrProcessor at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[<em>spring</em>-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[<em>spring</em>-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[<em>spring</em>-context-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.<em>spring</em>framework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refresh(SpringApplication.java:693) [<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:303) [<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:1118) [<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:1107) [<em>spring</em>-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE] at com.lanyu.SpringbootMybatisApplication.main(SpringbootMybatisApplication.java:14) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_40] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_40] at org.<em>spring</em>framework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [<em>spring</em>-boot-devtools-1.5.6.RELEASE.jar:1.5.6.RELEASE]
Property 'typeAliasesPackage' threw exception; nested exception is java.lang.ExceptionInInitializer
<em>spring</em> 配置启动遇到了一个奇怪的问题: Caused by: org.<em>spring</em>framework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.<em>spring</em>framework.beans.MethodInvocat...
Dubbo 简单例子搭建遇到的坑
环境: Dubble版本:2.7.0-SNAPSHOT Netty版本:4 做一个最简单的Dubbo+Zookeeper Demo,Follow的是Apache Dubbo的官方例子 搭建编写好Provider和Consumer的类和配置文件后,启动报了以下错误。 Provider启动: Exception in thread &quot;main&quot; org.apache.dubbo.rpc.R...
关于springboot+shiro+thymeleaf页面级元素的权限控制的问题
学习了很多大神的总结,基本上都是一样的,<em>shiro</em>权限框架,前端验证是为jsp设计的,其中的tag只能用于jsp系列的模板引擎。使用了thymeleaf作为前端模板引擎,使用HTML文件,没法引入<em>shiro</em>的tag lib,此时如果要使用<em>shiro</em>的话,可以引入 thymeleaf-extras-<em>shiro</em>.jar这个拓展包来曲线实现<em>shiro</em>的前端验证。 在pom.xml中加入如下依赖: &amp;...
Failed to instantiate [nz.net.ultraq.thymeleaf.LayoutDialect]
Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [nz.net.ultraq.thymeleaf.LayoutDialect]: Factory method 'layoutDialect' threw exception; nested exception is java
项目启动报错BeanCreationException
错误代码就显示找不到这个实体类,但是这个实体类却是存在 二月 10, 2017 4:27:30 下午 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.<em>spring</em>framework.web.context.ContextLoaderListener org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [application.xml]: Invocation of init method failed; nested exception is org.<em>spring</em>framework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SSM2.0\WEB-INF\classes\com\zuo\mapper\DanweiMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.zuo.domain.Danwei'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:684) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.<em>spring</em>framework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SSM2.0\WEB-INF\classes\com\zuo\mapper\DanweiMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.zuo.domain.Danwei'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:466) at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:340) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ... 27 more Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.zuo.domain.Danwei'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120) at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92) at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:464) ... 30 more Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.zuo.domain.Danwei'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:103) at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:264) at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:251) at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:243) at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:116) ... 32 more Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.zuo.domain.Danwei'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:117) at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:130) at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:101) ... 36 more Caused by: java.lang.ClassNotFoundException: Cannot find class: com.zuo.domain.Danwei at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:190) at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89) at org.apache.ibatis.io.Resources.classForName(Resources.java:256) at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:113) ... 38 more
在配置Shiro时,启动tomcat报错出现异常(org.springframework.beans.factory.BeanCreationException)
今天在配置完<em>shiro</em>后,启动服务器出现了一个问题(org.<em>spring</em>framework.beans.factory.BeanCreationException),我觉得可能我们都很容易就会碰到的一个问题。   org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bea
springboot整合shiro报 BeanCreationException: Error creating bean with name 'shiroFilter'
<em>spring</em>boot 2.0.4 然后<em>shiro</em>的版本是 &lt;dependency&gt; &lt;groupId&gt;org.apache.<em>shiro</em>&lt;/groupId&gt; &lt;artifactId&gt;<em>shiro</em>-<em>spring</em>&lt;/artifactId&gt; &lt;version&gt;1.4.0&lt;/version&gt; &...
Spirng Boot +Shiro 系统执行初始化数据时报No SecurityManager accessible to the calling code异常
Spirng Boot +Shiro 系统执行初始化数据时报No SecurityManager accessible to the calling code<em>异常</em>环境出现背景<em>异常</em>信息解决方法完整的<em>shiro</em>Configuration类 环境 Spring Boot + Shiro 出现背景 使用Spring Boot 的ApplicationRunner接口去执行数据库初始化数据。在执行过程中的保...
java.lang.IllegalStateException 错误原因及解决方法小记
java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been closed. at android.database.sqlite.SQLiteConnectionPool.throwIfClosedLocked(
shiro集成spring初始化分析
记录下学习<em>shiro</em>的过程,原来学过一边,不过忘得这也差不多了,这次就不打算复习一遍了,而是从源码开始看。希望这次可以记住的时间长点。这次的入口是DelegatingFilterProxy类,其在web.xml中以filter的配置存在,先看一下配置:&amp;lt;filter&amp;gt; &amp;lt;filter-name&amp;gt;<em>shiro</em>Filter&amp;lt;/filter-name&amp;gt; &amp;lt;fi...
!!!助,启动服务器。。。 Error creating bean with name 'session'
我也不知道按到哪里了,本来程序可以启动的。。。。 刚刚突然报错,。。。救命啊。。。哪里错了到底 org.<em>spring</em>framework.beans.factory.BeanCreationExcept
shiro配置,项目启动报错
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Filter' defined in class path resource [applicationContext-<em>shiro</em>.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [applicationContext-<em>shiro</em>.xml]: Cannot resolve reference to bean 'bosRealm' while setting bean property 'realm'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'bosRealm': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private cn.itcast.bos.service.system.UserService cn.itcast.bos.realm.BosRealm.userService; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceimpl': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private cn.itcast.bos.dao.system.UserRepository cn.itcast.bos.service.system.impl.UserServiceimpl.userRepository; nested exception is org.<em>spring</em>framework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.itcast.bos.dao.system.UserRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.<em>spring</em>framework.beans.factory.annotation.Autowired(required=true)} 看意思是securityManager在<em>shiro</em>Filter中的应用不能解析,但是检查了好长时间感觉没问题,实在不知道什么问题了,<em>求</em>大神指导
SpringBoot整合shiro-用户授权时遇到的问题:java.lang.ClassCastException
错误描述:类型转换时提示<em>异常</em>! java.lang.ClassCastException: java.lang.String cannot be cast to com.example.... 调试找到问题原因:下列代码有问题(一脸懵逼,不知因为啥报错) SecurityUtils.getSubject().getPrincipal(); 一开始不知云云,网上面百度了一下,了解到是项目...
关于beancreateexception怎么解决,跑tomcat直接报错
严重: StandardWrapper.Throwable org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creati
shiro框架源码解析与改造(三)---FilterChainManager
在ShiroFilterFactoryBean中,在创建filter实例时,调用了createFilterChainManager()方法来创建FilterChainManager,并对FilterChainManager 的一些变量进行了初始化 。 /** * 把拦截链,以及过滤器放进manager * @return */ private Filter...
Spring中常见的bean创建异常
Spring中常见的bean创建<em>异常</em>1. 概述     本次我们将讨论在<em>spring</em>中BeanFactory创建bean实例时经常遇到的<em>异常</em> org.<em>spring</em>framework.beans.factory.BeanCreationException,下面我们将讨论并再现这些<em>异常</em>,同时给出解决方案。
org.apache.shiro.session.UnknownSessionException--jpa查询语句自动变成了delete
       项目一直用<em>shiro</em>做权限认证,今天碰到了一个问题,一个原本正常的项目,因为更新,忽然间登录不上了,看错误提示,显示如下: Exception occurred during processing request: org.apache.<em>shiro</em>.session.UnknownSessionException: There is no session with id [67a4...
java web启动报错
2017-09-14 14:45:01,704 org.<em>spring</em>framework.web.context.ContextLoader#initWebApplicationContext()@30
Java shiro 小案例报错
跟着一个小视频走的,引入了<em>shiro</em>相关的jar,然后就是创建了一个类文件,有Main方法,就没别的了。 代码如下import org.apache.<em>shiro</em>.SecurityUtils; impo
springboot整合mybatis正常,加入mapper后启动报错,如何解决
2019-03-15 12:42:15.217 INFO 10184 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.3.7.Final} 2019-03-15 12:42:15.222 INFO 10184 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2019-03-15 12:42:15.549 INFO 10184 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2019-03-15 12:42:16.215 INFO 10184 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect 2019-03-15 12:42:17.776 INFO 10184 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2019-03-15 12:42:17.831 INFO 10184 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2019-03-15 12:42:18.451 WARN 10184 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [E:\example\demo\target\classes\com\example\demo\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 2019-03-15 12:42:18.452 INFO 10184 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2019-03-15 12:42:18.462 INFO 10184 --- [ restartedMain] com.jolbox.bonecp.BoneCP : Shutting down connection pool... 2019-03-15 12:42:18.466 INFO 10184 --- [ restartedMain] com.jolbox.bonecp.BoneCP : Connection pool has been shutdown. 2019-03-15 12:42:18.469 INFO 10184 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-03-15 12:42:18.498 INFO 10184 --- [ restartedMain] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-03-15 12:42:18.510 ERROR 10184 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [E:\example\demo\target\classes\com\example\demo\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[<em>spring</em>-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[<em>spring</em>-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refresh(SpringApplication.java:775) [<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:316) [<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:1260) [<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:1248) [<em>spring</em>-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at com.example.demo.DemoApplication.main(DemoApplication.java:13) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121] at org.<em>spring</em>framework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [<em>spring</em>-boot-devtools-2.1.3.RELEASE.jar:2.1.3.RELEASE] Caused by: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [E:\example\demo\target\classes\com\example\demo\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 24 common frames omitted Caused by: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [E:\example\demo\target\classes\com\example\demo\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1499) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1379) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 37 common frames omitted Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1305) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1144) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1484) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 48 common frames omitted Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 61 common frames omitted Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; 应该有伪属性名。 at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259) ~[mybatis-3.4.5.jar:3.4.5] at org.apache.ibatis.parsing.XPathParser.(XPathParser.java:125) ~[mybatis-3.4.5.jar:3.4.5] at org.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:82) ~[mybatis-3.4.5.jar:3.4.5] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:406) ~[mybatis-<em>spring</em>-1.3.2.jar:1.3.2] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:380) ~[mybatis-<em>spring</em>-1.3.2.jar:1.3.2] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:547) ~[mybatis-<em>spring</em>-1.3.2.jar:1.3.2] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration.sqlSessionFactory(MybatisAutoConfiguration.java:130) ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$7cd52283.CGLIB$sqlSessionFactory$1() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$7cd52283$$FastClassBySpringCGLIB$$42fbbd46.invoke() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[<em>spring</em>-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.<em>spring</em>framework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[<em>spring</em>-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$7cd52283.sqlSessionFactory() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121] at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[<em>spring</em>-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 62 common frames omitted Caused by: org.xml.sax.SAXParseException: 应该有伪属性名。 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPseudoAttribute(XMLScanner.java:613) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanXMLDeclOrTextDecl(XMLScanner.java:458) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(XMLDocumentFragmentScannerImpl.java:948) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$XMLDeclDriver.next(XMLDocumentScannerImpl.java:770) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:443) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) ~[na:1.8.0_121] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) ~[na:1.8.0_121] at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:257) ~[mybatis-3.4.5.jar:3.4.5] ... 78 common frames omitted
springMVC+shiro的权限管理和异常统一处理
<em>spring</em>MVC+<em>shiro</em>的权限管理和<em>异常</em>统一处理 SpringMVC+<em>shiro</em>的配置请参照网上其他博文,本文主要介绍如何使用<em>shiro</em>,动态管控用户的url请<em>求</em>。如何自定义filter,让前端页面通过返回的<em>异常</em>状态码进行统一的弹窗提示。 使用<em>shiro</em>后发现,当请<em>求</em>不符合过滤器要<em>求</em>时,会自动跳转到unauthorizedUrl页面,而我想实现的是通过后端返回不同的<em>异常</em>状态码,前端a
springboot集成mybatis时报错!
问题描述:<em>spring</em>boot小白,在test文件夹测试集成mybatis效果,然后就报错了。。 ![图片说明](https://img-ask.csdn.net/upload/201903/07/1551971608_173271.png) 我是用的application.properties配置 ![图片说明](https://img-ask.csdn.net/upload/201903/08/1552019169_589145.png) . * 1. **org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException**: Error creating bean with name 'userDAO' defined in file [E:\谷歌下载\project\target\classes\com\nowcoder\project\dao\UserDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1362) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1254) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:303) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:121) [<em>spring</em>-boot-test-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) [.cp/:na] Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1178) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1347) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 41 common frames omitted Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 53 common frames omitted Caused by: org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:499) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:381) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:546) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration.sqlSessionFactory(MybatisAutoConfiguration.java:130) ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a.CGLIB$sqlSessionFactory$1() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a$$FastClassBySpringCGLIB$$d7d646be.invoke() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[<em>spring</em>-core-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a.sqlSessionFactory() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201] at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 54 common frames omitted Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource jdbc.properties at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:117) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:95) ~[mybatis-3.4.0.jar:3.4.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:493) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] ... 67 common frames omitted Caused by: java.io.IOException: Could not find resource jdbc.properties at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:114) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:100) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.io.Resources.getResourceAsProperties(Resources.java:128) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.propertiesElement(XMLConfigBuilder.java:219) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:103) ~[mybatis-3.4.0.jar:3.4.0] ... 69 common frames omitted 2019-03-07 22:41:26.244 ERROR 7428 --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener@78ac1102] to prepare test instance [com.nowcoder.project.InitDatabaseTests@b887730] java.lang.IllegalStateException: Failed to load ApplicationContext at org.<em>spring</em>framework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12] at org.<em>spring</em>framework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) [<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) [.cp/:na] at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) [.cp/:na] Caused by: org.<em>spring</em>framework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDAO' defined in file [E:\谷歌下载\project\target\classes\com\nowcoder\project\dao\UserDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1362) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1254) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.SpringApplication.run(SpringApplication.java:303) ~[<em>spring</em>-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:121) ~[<em>spring</em>-boot-test-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.<em>spring</em>framework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) ~[<em>spring</em>-test-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 25 common frames omitted Caused by: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/<em>spring</em>/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1178) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1347) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 41 common frames omitted Caused by: org.<em>spring</em>framework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 53 common frames omitted Caused by: org.<em>spring</em>framework.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: java.io.IOException: Could not find resource jdbc.properties at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:499) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:381) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:546) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration.sqlSessionFactory(MybatisAutoConfiguration.java:130) ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a.CGLIB$sqlSessionFactory$1() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a$$FastClassBySpringCGLIB$$d7d646be.invoke() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at org.<em>spring</em>framework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[<em>spring</em>-core-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.<em>spring</em>framework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[<em>spring</em>-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.mybatis.<em>spring</em>.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$64717f8a.sqlSessionFactory() ~[mybatis-<em>spring</em>-boot-autoconfigure-1.1.1.jar:1.1.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_201] at org.<em>spring</em>framework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[<em>spring</em>-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 54 common frames omitted Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource jdbc.properties at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:117) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:95) ~[mybatis-3.4.0.jar:3.4.0] at org.mybatis.<em>spring</em>.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:493) ~[mybatis-<em>spring</em>-1.3.0.jar:1.3.0] ... 67 common frames omitted Caused by: java.io.IOException: Could not find resource jdbc.properties at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:114) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:100) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.io.Resources.getResourceAsProperties(Resources.java:128) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.propertiesElement(XMLConfigBuilder.java:219) ~[mybatis-3.4.0.jar:3.4.0] at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:103) ~[mybatis-3.4.0.jar:3.4.0] ... 69 common frames omitted
spring boot +mybits 启动报的错org.springframework.beans.factory.UnsatisfiedDependency
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/
Spring文档学习--异常处理(Handling exceptions)以Shiro为例
介绍了SpringMVC提供的<em>异常</em>处理机制,包括实现HandlerExceptionResolver来定义自己的<em>异常</em>处理,SimpleMappingExceptionResolver和@ExceptionHandler的使用
springboot+shiro做统一的异常处理
1.<em>shiro</em>的常见<em>异常</em> 1.1 AuthencationException: AuthenticationException <em>异常</em>是Shiro在登录认证过程中,认证失败需要抛出的<em>异常</em>。 AuthenticationException包含以下子类: CredentitalsException 凭证<em>异常</em> IncorrectCredentialsException 不正确的凭证 ...
spring boot 整合shiro+权限不足异常捕获
详细看CSDN:https://blog.csdn.net/gc1329689056/article/details/83304205
spring boot配置shiro自定义shiro filter匹配异常
原文地址:http://www.hillfly.com/2017/179.html最近忙着研究在 Springboot 上使用 Shiro 的问题。刚好就遇到个诡异事,百度 Google 也没找到啥有价值的信息,几番周折自己解决了,这里稍微记录下。自定义 FilterTOCShiro 支持自定义 Filter 大家都知道,也经常用,这里我也用到了一个自定义 Filter,主要用于验证接口调用的 A...
android failed to instantiate one or more classes 布局老提示这个
h
spring整合shiro启动项目报错,创建shiroFilter失败
22:15:56,642 WARN XmlWebApplicationContext:546 - Exception encountered during context initialization - cancelling refresh attempt: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Filter' defined in URL [file:/D:/LnSoftware/Tomcat/7.0.52/apache-tomcat-7.0.52/webapps/logistic_web/WEB-INF/classes/applicationContext-<em>shiro</em>.xml]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type gerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory; used in the signature 22:15:56,653 ERROR ContextLoader:353 - Context initialization failed org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name '<em>shiro</em>Filter' defined in URL [file:/D:/LnSoftware/Tomcat/7.0.52/apache-tomcat-7.0.52/webapps/logistic_web/WEB-INF/classes/applicationContext-<em>shiro</em>.xml]: Instantiation of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type gerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory; used in the signature at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.<em>spring</em>framework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.<em>spring</em>framework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.<em>spring</em>framework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523) at org.<em>spring</em>framework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446) at org.<em>spring</em>framework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328) at org.<em>spring</em>framework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) 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(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.我的错误原因
Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.报错 由于我是在联系框架,要进行xml配置 错误原因是 xml文件没有设定dtd格式,导致文档中的&amp;lt;,&amp;gt;号或者其他符号不能识别正确 在文档首段加上这句话我的入门测试就成功了 ...
Springboot+Shiro统一异常处理包含Ajax
1.采用方式 这里通过 @ControllerAdvice和@ExceptionHandler 的<em>异常</em>处理方式 2.具体步骤 1.创建统一<em>异常</em>处理类(GlobalExpetion) 2.定义判断是否是Aajx请<em>求</em>的方法 public boolean isAjax(HttpServletRequest request) { return (request.getHeader("X...
关于shiro session失效报错问题
最近做了一个项目,要用到<em>shiro</em>,做完之后发现有个<em>异常</em>经常发生,经过多天的研究,终于得以解决 登录的时候<em>异常</em>信息: org.apache.<em>shiro</em>.session.UnknownSessionException: There is no session with id [4e8fe40a-6347-4c53-b273-829889656f6e] at org.apache.shi
shiro的session失效问题,请高手指教
有关<em>shiro</em>的session有几个问题需要请教一下各位大大们,请不吝赐教。 1、我自己实现的sessionListener为什么onExpiration一直都不触发? 2、怎么判断session已经
mybatis报exception is java.lang.RuntimeException: org.apache.ibatis.binding.BindingException: Invalid
二月 02, 2018 2:16:49 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler [&quot;http-bio-8080&quot;] 二月 02, 2018 2:17:58 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.s...
shiro登录验证的时候报异常:java.lang.IllegalArgumentException
java.lang.IllegalArgumentException: Properties file not found in classpath: administrator.properties
关于spring的BeanCreationException问题
之前做Android 最近行业不景气,做了java 入职一个很小的公司 项目经理昨天给了我一个框架让我跑(之前的项目他把里面的代码全都删了只留下一个框架) 部署之后一直报BeanCreationExc
spring异常,org.springframework.beans.factory.BeanCreationException:
我用的版本是 Struts2.3.8 +Spring 3.2+ Hibernate4.1.9 ,出现如下<em>异常</em>: org.<em>spring</em>framework.beans.factory.BeanCreati
用了alexxiyang/shiro-redis集成环境的时候报系列化错误,应该怎么解决?
356079 ERROR org.crazycake.<em>shiro</em>.SerializeUtils - Failed to serialize java.lang.Exception: Failed to
mybatis中出现的org.apache.ibatis.reflection.ReflectionException如何解决
问题原因:Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: Error instant
SpringBoot启动报错:org.springframework.beans.factory.BeanCreationException
SpringBoot启动报错: org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'defaultValidator' defined in class path resource [org/<em>spring</em>framework/boot/autoconfigure/valida...
shiro启动报错
看错误应该是少jar包,可以相关jar包都已经添加了,不知道是错在哪里。 github地址 弄了三天心累啊,想找个人问问都没有。分都快问完了,各位大神帮帮忙。 pom.xml
shiro登录报错
2017-03-04 11:06:51,014 INFO - Using existing EHCache named org.apache.<em>shiro</em>.authc.AuthenticationExc
shiro 当账号不存在的时候,抛出的异常是 AuthenticationException
<em>shiro</em>配置了一个Realm的时候,登录抛出<em>异常</em>,可以获取UnknownountException。而配置两个realm的时候,就获取到的是AuthenticationException。请问如何解决
maven项目启动报错 java.lang.ClassNotFoundException: org.apache.shiro.web.env.Environme
maven 小白 引入的maven项目,启动Tomcat 报java.lang.ClassNotFoundException: org.apache.<em>shiro</em>.web.env.Environment
销毁SESSION的问题
退出页面调用方法:这里没问题 request.getSession().invalidate(); response.sendRedirect("index.jsp"); 但是同时还有个HttpSes
java.lang.IllegalArgumentException 异常大牛说下解决方案
![图片说明](https://img-ask.csdn.net/upload/201509/25/1443177817_810134.png)
Shiro的Filter机制详解---源码分析
Shiro的Filter机制详解 首先从<em>spring</em>-<em>shiro</em>.xml的filter配置说起,先回答两个问题: 1, 为什么相同url规则,后面定义的会覆盖前面定义的(执行的时候只执行最后一个)。 2, 为什么两个url规则都可以匹配同一个url,只执行第一个呢。 下面分别从这两个问题入手,最终阅读源码得到解答。 问题一解答 相同url但定义在不同的行,后面覆盖前面 如 ...
No provider available for the service
zookeeper注册成功,订阅成功,但是却说服务没有提供者。 Exception in thread "main" org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'SayHelloTo': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.huatai.usercenter.api.test.SayHelloToClient. No provider available for the service com.huatai.usercenter.api.test.SayHelloToClient from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=hehe_consumer&dubbo=2.8.4&interface=com.huatai.usercenter.api.test.SayHelloToClient&methods=sayHello&pid=4572&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1490171679141 to the consumer 160.6.70.215 use dubbo version 2.8.4 at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:151) at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1514) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:252) at org.<em>spring</em>framework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.<em>spring</em>framework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:973) at com.test.Consumer.main(Consumer.java:81) Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.huatai.usercenter.api.test.SayHelloToClient. No provider available for the service com.huatai.usercenter.api.test.SayHelloToClient from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=hehe_consumer&dubbo=2.8.4&interface=com.huatai.usercenter.api.test.SayHelloToClient&methods=sayHello&pid=4572&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1490171679141 to the consumer 160.6.70.215 use dubbo version 2.8.4 at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) at com.alibaba.dubbo.config.<em>spring</em>.ReferenceBean.getObject(ReferenceBean.java:65) at org.<em>spring</em>framework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:144) ... 6 more
Dubbo的ZK报错了,请大神们看看!
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'contentCatController': Injection of autowired dependencies failed; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Could not autowire field: private cn.e3mall.content.service.ContentCategoryService cn.e3mall.controller.ContentCatController.contentCategoryService; nested exception is org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'contentCategoryService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.144:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCatList,addContentCategory&pid=10868&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1494830003599 to the consumer 192.168.25.1 use dubbo version 2.5.3 **PS:有人说是我的contentCatController的项目tomcat服务没有开启,但是我开启了还是没有用**
Shiro使用redis作为缓存(解决shiro频繁访问Redis)(十一)
原文地址,转载请注明出处:&amp;amp;amp;nbsp;https://blog.csdn.net/qq_34021712/article/details/80791219&amp;amp;amp;nbsp;&amp;amp;amp;nbsp; &amp;amp;amp;nbsp;&amp;amp;amp;nbsp;©王赛超&amp;amp;amp;nbsp; 之前写过一篇博客,使用的一个开源项目,实现了redis作为缓存 缓存用户的权限 和 session信息,还有两个功能没有修改,一个是用户并发
java.lang.IllegalArgumentException 希望大神帮解决
java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:140) at com.ch.MapModel.getDa
项目启动报错
i015-11-29 23:18:23,621 DEBUG - Scanned package: 'com.spdbccc.maf' for aliases 2015-11-29 23:18:23,6
Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or
搭建<em>spring</em>boot项目遇到个问题 2018-09-26 13:52:50.225 WARN 20088 --- ConfigServletWebServerApplicationContext
Error creating bean with name 'sqlSessionFactoryBean'
org.<em>spring</em>framework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFa
shiro权限比对的一些坑
  最近在做<em>shiro</em>权限控制的时候,搭建完了环境给同事使用,同事使用的时候发现了一个bug,让我看看,bug是这样的,       在freemarke中使用<em>shiro</em>标签,&amp;lt;@<em>shiro</em>.hasPermission name=&quot;sys:user:1111&quot;&amp;gt;&amp;lt;/@<em>shiro</em>.hasPermission&amp;gt;发现标签不起作用,而这个权限在数据库是没有配置,查询出来的授权管理的...
mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception
mybatis报错:org.mybatis.<em>spring</em>.MyBatisSystemException: nested exception is org.apache.ibatis.exception 就是用来接值的resultmap对应的参数不对,不是map型
dubbo起步搭建Spring+SpringMVC+dubbo的开发环境(4,提供者 消费者工程启动调试)重要
dubbo起步搭建Spring+SpringMVC+dubbo的开发环境 提供者 消费者工程启动调试 重要 提示找不到远程服务类
java.lang.IllegalStateException异常
信息: Illegal access: this web application instance has been stopped already. Could not load oracle.jd
springcloud feign 注入bean null问题
在<em>spring</em>cloud feign应用中遇到的坑,希望给大家参考
Line argument must contain a key and a value. Only one string token was found.
配置<em>shiro</em>框架时出现如下错误,原因是换行错误。代码写完后自动整理代码格式时,换行了。 &amp;lt;property name=&quot;filterChainDefinitions&quot;&amp;gt; &amp;lt;value&amp;gt; &amp;lt;!-- 未经认证可直接访问 --&amp;gt; /logon.jsp = anon /logon = anon /logout = logout /a...
MAVEN 编译spring boot + mybatis 出现 Error parsing Mapper XML.
问题描述:在<em>spring</em> boot + mybatis 在Intellij工具中能正常编译运行, 但是使用maven能编译通过, 无法正确启动,启动时出现一下<em>异常</em>这里写代码片Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' e
Error creating bean with name 'shiroFilter' defined in class path resource [com/
我在启动时报错。<em>求</em>大虾解救,,报错信息如下 2014-10-16 11:57:46 - org.<em>spring</em>framework.web.context.ContextLoader -ContextLo
关于shiro中运行连接数据库失败,请问大神是怎么回事
2017-04-28 16:42:37,799 WARN org.<em>spring</em>framework.web.context.support.XmlWebApplicationContext - :Exc
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
FCKeditor_2.6.6_for_asp_GB2312下载
1): UTF-8转GB2312 2):上传文件日期重命名 3):修改浏览模式下不能上传文件,而修正当前目录 4):上传、浏览文件身份检测(此功能请根据自己的实质情况修改) 相关下载链接:[url=//download.csdn.net/download/bmcsy/2132807?utm_source=bbsseo]//download.csdn.net/download/bmcsy/2132807?utm_source=bbsseo[/url]
Java 编程思想 chm下载
Java 编程 思想 chm格式的 希望对大家学习Java 有所帮助 ,谢谢 相关下载链接:[url=//download.csdn.net/download/li_1042237864/2664889?utm_source=bbsseo]//download.csdn.net/download/li_1042237864/2664889?utm_source=bbsseo[/url]
红外遥控解码c51程序下载
实现 红外数据解码,显示键值。 和操作原理。 相关下载链接:[url=//download.csdn.net/download/find6712113/3289871?utm_source=bbsseo]//download.csdn.net/download/find6712113/3289871?utm_source=bbsseo[/url]
相关热词 c# id读写器 c#俄罗斯方块源码 c# linq原理 c# 装箱有什么用 c#集合 复制 c# 一个字符串分组 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图
我们是很有底线的