?????? why springmvc show exception:org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration Unsatisfied dependency expressed through field 'filterMap';

2020-07-07 Thread ????????
hi brian demers:



i open url :

https://github.com/apache/shiro/tree/master/samples/spring-mvc

download source.

cmd run command:



mvn jetty:run-war

{{}}

exception bottom:

{{}}

{{}}

[INFO]Scanning elapsed time=7463ms
[INFO]1 Spring WebApplicationInitializers detected on classpath
[INFO]DefaultSessionIdManager workerName=node0
[INFO]No SessionScavenger set, using defaults
[INFO]node0 Scavenging every 60ms
[INFO]Initializing Spring root WebApplicationContext
2020-07-08 06:27:59,951 
INFO[org.springframework.web.context.ContextLoader]- Root 
WebApplicationContext: initialization started
2020-07-08 06:28:00,299 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'org.apache.shiro.spring.config.ShiroBeanConfiguration' of 
type[org.apache.shiro.spring.config.ShiroBeanConfiguration$$EnhancerBySpringCGLIB$$ccb08874]is
 not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:00,317 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'org.apache.shiro.spring.config.ShiroAnnotationProcessorConfiguration' of 
type[org.apache.shiro.spring.config.ShiroAnnotationProcessorConfiguration$$EnhancerBySpringCGLIB$$caa4e047]is
 not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:00,334 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'eventBus' of 
type[org.apache.shiro.event.support.DefaultEventBus]is not eligible 
for getting processed by all BeanPostProcessors (for example: not eligible for 
auto-proxying)
2020-07-08 06:28:00,348 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'applicationConfig' of 
type[org.apache.shiro.samples.spring.config.ApplicationConfig$$EnhancerBySpringCGLIB$$1ce25990]is
 not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:00,703 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'cacheManager' of 
type[org.apache.shiro.cache.ehcache.EhCacheManager]is not eligible 
for getting processed by all BeanPostProcessors (for example: not eligible for 
auto-proxying)
2020-07-08 06:28:00,748 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'org.apache.shiro.spring.web.config.ShiroWebConfiguration' of 
type[org.apache.shiro.spring.web.config.ShiroWebConfiguration$$EnhancerBySpringCGLIB$$ff66ba30]is
 not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:00,758 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'dataSource' of 
type[org.springframework.jdbc.datasource.DriverManagerDataSource]is 
not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:00,774 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'jdbcRealm' of 
type[org.apache.shiro.samples.spring.realm.SaltAwareJdbcRealm]is 
not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:01,140 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'sessionStorageEvaluator' of 
type[org.apache.shiro.web.mgt.DefaultWebSessionStorageEvaluator]is 
not eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:01,141 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'subjectDAO' of 
type[org.apache.shiro.mgt.DefaultSubjectDAO]is not eligible for 
getting processed by all BeanPostProcessors (for example: not eligible for 
auto-proxying)
2020-07-08 06:28:01,143 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'subjectFactory' of 
type[org.apache.shiro.web.mgt.DefaultWebSubjectFactory]is not 
eligible for getting processed by all BeanPostProcessors (for example: not 
eligible for auto-proxying)
2020-07-08 06:28:01,147 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'rememberMeCookieTemplate' of 
type[org.apache.shiro.web.servlet.SimpleCookie]is not eligible for 
getting processed by all BeanPostProcessors (for example: not eligible for 
auto-proxying)
2020-07-08 06:28:01,149 
INFO[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]-
 Bean 'rememberMeManager' of 
type[org.apache.shiro.web.mgt.CookieRememberMeManager]is not 
eligible for 

Re: why springmvc show exception:org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration Unsatisfied dependency expressed through field 'filterMap';

2020-07-07 Thread Brian Demers
Can you include the full error message and stack trace?

What does your code look like?



On Tue, Jul 7, 2020 at 5:19 AM 一直以来 <279377...@qq.com> wrote:

> 2020-07-07 17:06:56,149 ERROR
> [org.springframework.web.context.ContextLoader] - Context initialization
> failed
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name
> 'org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration':
> Unsatisfied dependency expressed through field 'filterMap'; nested
> exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> qualifying bean of type 'java.util.Map javax.servlet.Filter>' available: expected at least 1 bean which qualifies
> as autowire candidate. Dependency annotations:
> {@org.springframework.beans.factory.annotation.Autowired(required=true)}
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
>
> why??thank you !
>


why springmvc show exception:org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration Unsatisfied dependency expressed through field 'filterMap';

2020-07-07 Thread ????????
2020-07-07 17:06:56,149 ERROR [org.springframework.web.context.ContextLoader] - 
Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 
'org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration': Unsatisfied 
dependency expressed through field 'filterMap'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying 
bean of type 'java.util.Map