Qui*_*rie 5 spring-security cglib spring-boot
使用Spring MVC框架的Web项目转换为springboot项目,当我启动该项目时,springsecurity XML配置文件中的一些自定义过滤器类被初始化,但出现一些错误。
\n\n2016-12-20 13:31:20.246 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/card/addUserCard\'], []\n2016-12-20 13:31:20.982 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/account/info/phone\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@fcdc54b, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@518f762b, org.springframework.security.web.header.HeaderWriterFilter@2ddbeadd, org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter@781e4f0f, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@324ec65d, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@4d06465d, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@4687c5a7, org.springframework.security.web.session.SessionManagementFilter@4fd812, org.springframework.security.web.access.ExceptionTranslationFilter@e801dfa, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2a936788]\n2016-12-20 13:31:21.044 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final void com.tjiptv.iptvuser.service.oauth2.AbstractOAuth2SecurityExceptionHandler.doHandle(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Exception) throws java.io.IOException,javax.servlet.ServletException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.059 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/oauth/token\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@356e8307, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@522dd798, org.springframework.security.web.header.HeaderWriterFilter@770c92e8, org.springframework.security.oauth2.provider.client.ClientCredentialsTokenEndpointFilter@345c38da, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@4868481a, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@ba4884a, org.springframework.security.web.access.ExceptionTranslationFilter@7a60327c, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@5fcaf2b2]\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.setRequiresAuthenticationRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.init(javax.servlet.FilterConfig) throws javax.servlet.ServletException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final java.lang.String org.springframework.web.filter.GenericFilterBean.getFilterName()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setBeanName(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final javax.servlet.FilterConfig org.springframework.web.filter.GenericFilterBean.getFilterConfig()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setServletContext(javax.servlet.ServletContext)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.085 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final void org.springframework.web.filter.GenericFilterBean.addRequiredProperty(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.086 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final javax.servlet.ServletContext org.springframework.web.filter.GenericFilterBean.getServletContext()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.108 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/account/api/login/**\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@7895c1d8, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@3dbe97d9, org.springframework.security.web.header.HeaderWriterFilter@3d848b02, com.tjiptv.iptvuser.service.oauth2.CustomClientCredentialsTokenEndpointFilter@32c5fceb, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@795231bd, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1bdaeeba, org.springframework.security.web.access.ExceptionTranslationFilter@659a53a3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@255f1734]\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.setRequiresAuthenticationRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.init(javax.servlet.FilterConfig) throws javax.servlet.ServletException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final java.lang.String org.springframework.web.filter.GenericFilterBean.getFilterName()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setBeanName(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final javax.servlet.FilterConfig org.springframework.web.filter.GenericFilterBean.getFilterConfig()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setServletContext(javax.servlet.ServletContext)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final void org.springframework.web.filter.GenericFilterBean.addRequiredProperty(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.120 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final javax.servlet.ServletContext org.springframework.web.filter.GenericFilterBean.getServletContext()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.137 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/sendSmsCode\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@6548021c, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7014f38b, org.springframework.security.web.header.HeaderWriterFilter@7632aeff, com.tjiptv.iptvuser.service.oauth2.CustomClientSmsFilter@182f8215, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@6fe59f52, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@fa1d033, org.springframework.security.web.access.ExceptionTranslationFilter@2e5e12a7, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@3f912598]\n2016-12-20 13:31:21.159 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/oauth/check_token\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@31d47510, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@170975eb, org.springframework.security.web.header.HeaderWriterFilter@627d8763, org.springframework.security.web.csrf.CsrfFilter@3aea91a7, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@3d22dfe9, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@2fefbf44, org.springframework.security.web.access.ExceptionTranslationFilter@2924f17b, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2787300e]\n2016-12-20 13:31:21.324 INFO 8348 --- [ost-startStop-1] c.t.wisetv.redis.client.RedisClient : redis client init start~\n2016-12-20 13:31:21.583 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern=\'/oauth/logout\'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@3d2582c4, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@3948ad0b, org.springframework.security.web.header.HeaderWriterFilter@57135ef7, org.springframework.security.web.csrf.CsrfFilter@59c46ae6, org.springframework.security.web.authentication.logout.LogoutFilter@24d39ceb, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@60400961, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@6b538863, org.springframework.security.web.session.SessionManagementFilter@392877f9, org.springframework.security.web.access.ExceptionTranslationFilter@5dfd59ae, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@9cd4d50]\n2016-12-20 13:31:21.630 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.init(javax.servlet.FilterConfig) throws javax.servlet.ServletException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final java.lang.String org.springframework.web.filter.GenericFilterBean.getFilterName()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setBeanName(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final javax.servlet.FilterConfig org.springframework.web.filter.GenericFilterBean.getFilterConfig()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.web.filter.GenericFilterBean.setServletContext(javax.servlet.ServletContext)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final void org.springframework.web.filter.GenericFilterBean.addRequiredProperty(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.631 INFO 8348 --- [ost-startStop-1] o.s.aop.framework.CglibAopProxy : Unable to proxy method [protected final javax.servlet.ServletContext org.springframework.web.filter.GenericFilterBean.getServletContext()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.\n2016-12-20 13:31:21.645 INFO 8348 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.SecurityContextPersistenceFilter@3fafd3c, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4ba0054a, org.springframework.security.web.header.HeaderWriterFilter@1c0b30aa, org.springframework.security.web.authentication.logout.LogoutFilter@48ef5856, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@7d8f7bcf, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@50c4ab69, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@5f67efaf, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3bb0d32d, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5fd202d9, com.tjiptv.iptvuser.service.oauth2.CustomConcurrentSessionFilter@3c50ccb8, org.springframework.security.web.session.SessionManagementFilter@52e1bb69, org.springframework.security.web.access.ExceptionTranslationFilter@2147d987, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@3fbc8105]\n2016-12-20 13:31:21.658 INFO 8348 --- [ost-startStop-1] o.s.s.c.h.DefaultFilterChainValidator : Checking whether login URL \'/resources/html/login.html\' is accessible with your configuration\n2016-12-20 13:31:23.187 WARN 8348 --- [ost-startStop-1] o.s.s.c.h.DefaultFilterChainValidator : Possible error: Filters at position 4 and 5 are both instances of org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter\n2016-12-20 13:31:23.335 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'metricsFilter\' to: [/*]\n2016-12-20 13:31:23.336 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'hiddenHttpMethodFilter\' to: [/*]\n2016-12-20 13:31:23.336 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'httpPutFormContentFilter\' to: [/*]\n2016-12-20 13:31:23.336 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'requestContextFilter\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: \'springSecurityFilterChain\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'webRequestLoggingFilter\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'characterEncodingFilter\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.filterChainProxy\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#2\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#3\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#4\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'clientCredentialsTokenEndpointFilter\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'localResourceServer\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#5\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#6\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0\' to: [/*]\n2016-12-20 13:31:23.337 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'customUsernamePasswordAuthenticationFilter\' to: [/*]\n2016-12-20 13:31:23.338 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'customClientCredentialsTokenEndpointFilter\' to: [/*]\n2016-12-20 13:31:23.338 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'customClientSmsFilter\' to: [/*]\n2016-12-20 13:31:23.338 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'concurrencyFilter\' to: [/*]\n2016-12-20 13:31:23.338 INFO 8348 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: \'applicationContextIdFilter\' to: [/*]\n2016-12-20 13:31:23.338 INFO 8348 --- [ost-startStop-1] o.s.
归档时间: |
|
查看次数: |
962 次 |
最近记录: |