Spring MVC 第一次訪問例項化過程

modun1986發表於2010-10-27

[DEBUG,FilterChainProxy,http-8080-1] Converted URL to lowercase, from: '/index.jsp'; to: '/index.jsp'
[DEBUG,FilterChainProxy,http-8080-1] Candidate is: '/index.jsp'; pattern is /**; matched=true
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 1 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.context.SecurityContextPersistenceFilter@46f5331a'
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] No HttpSession currently exists
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] No SecurityContext was available from the HttpSession: null. A new one will be created.
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 2 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.authentication.logout.LogoutFilter@46fb3d6'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 3 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4187a8e0'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 4 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.www.BasicAuthenticationFilter@31602bbc'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 5 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.savedrequest.RequestCacheAwareFilter@20d75cf7'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 6 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1b186cf9'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 7 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter@61316264'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 8 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.AnonymousAuthenticationFilter@7132c515'
[DEBUG,AnonymousAuthenticationFilter,http-8080-1] Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 9 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.session.SessionManagementFilter@3c291fc2'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 10 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.access.ExceptionTranslationFilter@2fe41869'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 11 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor@27feae0f'
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Converted URL to lowercase, from: '/index.jsp'; to: '/index.jsp'
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Candidate is: '/index.jsp'; pattern is /; matched=false
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Candidate is: '/index.jsp'; pattern is /index.jsp; matched=true
[DEBUG,FilterSecurityInterceptor,http-8080-1] Secure object: FilterInvocation: URL: /index.jsp; Attributes: [IS_AUTHENTICATED_ANONYMOUSLY]
[DEBUG,FilterSecurityInterceptor,http-8080-1] Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS
[DEBUG,AffirmativeBased,http-8080-1] Voter:
org.springframework.security.access.vote.RoleVoter@2ec50561, returned: 0
[DEBUG,AffirmativeBased,http-8080-1] Voter:
org.springframework.security.access.vote.AuthenticatedVoter@8e43b44, returned: 1
[DEBUG,FilterSecurityInterceptor,http-8080-1] Authorization successful
[DEBUG,DefaultListableBeanFactory,http-8080-1] Returning cached instance of singleton bean 'loggerListener'
[DEBUG,FilterSecurityInterceptor,http-8080-1] RunAsManager did not change Authentication object
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp at position 12 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.authentication.switchuser.SwitchUserFilter@3feef1eb'
[DEBUG,FilterChainProxy,http-8080-1] /index.jsp reached end of additional filter chain; proceeding with original chain
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] SecurityContext contents are anonymous - context will not be stored in HttpSession.
[DEBUG,ExceptionTranslationFilter,http-8080-1] Chain processed normally
[DEBUG,SecurityContextPersistenceFilter,http-8080-1] SecurityContextHolder now cleared, as request processing completed
[DEBUG,FilterChainProxy,http-8080-1] Converted URL to lowercase, from: '/hello.htm'; to: '/hello.htm'
[DEBUG,FilterChainProxy,http-8080-1] Candidate is: '/hello.htm'; pattern is /**; matched=true
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 1 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.context.SecurityContextPersistenceFilter@46f5331a'
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] HttpSession returned null object for SPRING_SECURITY_CONTEXT
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] No SecurityContext was available from the HttpSession:
org.apache.catalina.session.StandardSessionFacade@2260e277. A new one will be created.
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 2 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.authentication.logout.LogoutFilter@46fb3d6'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 3 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4187a8e0'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 4 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.www.BasicAuthenticationFilter@31602bbc'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 5 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.savedrequest.RequestCacheAwareFilter@20d75cf7'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 6 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1b186cf9'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 7 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter@61316264'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 8 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.authentication.AnonymousAuthenticationFilter@7132c515'
[DEBUG,AnonymousAuthenticationFilter,http-8080-1] Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@905571d8: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@0: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: DCB3F2432A9D521334AF8FD10691D141; Granted Authorities: ROLE_ANONYMOUS'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 9 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.session.SessionManagementFilter@3c291fc2'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 10 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.access.ExceptionTranslationFilter@2fe41869'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 11 of 12 in additional filter chain; firing Filter: 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor@27feae0f'
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Converted URL to lowercase, from: '/hello.htm'; to: '/hello.htm'
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Candidate is: '/hello.htm'; pattern is /; matched=false
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Candidate is: '/hello.htm'; pattern is /index.jsp; matched=false
[DEBUG,DefaultFilterInvocationSecurityMetadataSource,http-8080-1] Candidate is: '/hello.htm'; pattern is /hello.htm; matched=true
[DEBUG,FilterSecurityInterceptor,http-8080-1] Secure object: FilterInvocation: URL: /hello.htm; Attributes: [IS_AUTHENTICATED_ANONYMOUSLY]
[DEBUG,FilterSecurityInterceptor,http-8080-1] Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@905571d8: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@0: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: DCB3F2432A9D521334AF8FD10691D141; Granted Authorities: ROLE_ANONYMOUS
[DEBUG,AffirmativeBased,http-8080-1] Voter:
org.springframework.security.access.vote.RoleVoter@2ec50561, returned: 0
[DEBUG,AffirmativeBased,http-8080-1] Voter:
org.springframework.security.access.vote.AuthenticatedVoter@8e43b44, returned: 1
[DEBUG,FilterSecurityInterceptor,http-8080-1] Authorization successful
[DEBUG,FilterSecurityInterceptor,http-8080-1] RunAsManager did not change Authentication object
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm at position 12 of 12 in additional filter chain; firing Filter:
'org.springframework.security.web.authentication.switchuser.SwitchUserFilter@3feef1eb'
[DEBUG,FilterChainProxy,http-8080-1] /hello.htm reached end of additional filter chain; proceeding with original chain
[DEBUG,DispatcherServlet,http-8080-1] DispatcherServlet with name 'contacts' determining Last-Modified value for [/springsecurity_contacts/hello.htm]
[DEBUG,DefaultAnnotationHandlerMapping,http-8080-1] Mapping [/hello.htm] to handler
'sample.contact.IndexController@64836727'
[DEBUG,DispatcherServlet,http-8080-1] Last-Modified value for [/springsecurity_contacts/hello.htm] is: -1
[DEBUG,DispatcherServlet,http-8080-1] DispatcherServlet with name 'contacts' processing GET request for [/springsecurity_contacts/hello.htm]
[DEBUG,HandlerMethodInvoker,http-8080-1] Invoking request handler method: public org.springframework.web.servlet.ModelAndView sample.contact.IndexController.displayPublicIndex()
[DEBUG,AnnotationTransactionAttributeSource,http-8080-1] Adding transactional method 'getRandomContact' with attribute: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly; ''
[DEBUG,DefaultListableBeanFactory,http-8080-1] Returning cached instance of singleton bean 'transactionManager'
[DEBUG,DataSourceTransactionManager,http-8080-1] Creating new transaction with name [sample.contact.ContactManager.getRandomContact]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly; ''
[DEBUG,DriverManagerDataSource,http-8080-1] Creating new JDBC DriverManager Connection to [jdbc:hsqldb:mem:test]
[DEBUG,DataSourceTransactionManager,http-8080-1] Acquired Connection [org.hsqldb.jdbc.jdbcConnection@2382815a] for JDBC transaction
[DEBUG,DataSourceUtils,http-8080-1] Setting JDBC Connection [org.hsqldb.jdbc.jdbcConnection@2382815a] read-only
[DEBUG,DataSourceTransactionManager,http-8080-1] Switching JDBC Connection [org.hsqldb.jdbc.jdbcConnection@2382815a] to manual commit
[DEBUG,ContactManagerBackend,http-8080-1] Returning random contact
[DEBUG,JdbcTemplate,http-8080-1] Executing prepared SQL query
[DEBUG,JdbcTemplate,http-8080-1] Executing prepared SQL statement [SELECT id, contact_name, email FROM contacts ORDER BY id]
[DEBUG,DataSourceTransactionManager,http-8080-1] Initiating transaction commit
[DEBUG,DataSourceTransactionManager,http-8080-1] Committing JDBC transaction on Connection [org.hsqldb.jdbc.jdbcConnection@2382815a]
[DEBUG,DataSourceUtils,http-8080-1] Resetting read-only flag of JDBC Connection [org.hsqldb.jdbc.jdbcConnection@2382815a]
[DEBUG,DataSourceTransactionManager,http-8080-1] Releasing JDBC Connection [org.hsqldb.jdbc.jdbcConnection@2382815a] after transaction
[DEBUG,DataSourceUtils,http-8080-1] Returning JDBC Connection to DataSource
[DEBUG,DefaultListableBeanFactory,http-8080-1] Invoking afterPropertiesSet() on bean with name 'hello'
[DEBUG,DispatcherServlet,http-8080-1] Rendering view [org.springframework.web.servlet.view.JstlView: name 'hello'; URL [/WEB-INF/jsp/hello.jsp]] in DispatcherServlet with name 'contacts'
[DEBUG,JstlView,http-8080-1] Added model object 'org.springframework.validation.BindingResult.contact' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name 'hello'
[DEBUG,JstlView,http-8080-1] Added model object 'contact' of type [sample.contact.Contact] to request in view with name 'hello'
[DEBUG,JstlView,http-8080-1] Forwarding to resource [/WEB-INF/jsp/hello.jsp] in InternalResourceView 'hello'
[DEBUG,DispatcherServlet,http-8080-1] Successfully completed request
[DEBUG,DefaultListableBeanFactory,http-8080-1] Returning cached instance of singleton bean 'loggerListener'
[DEBUG,ExceptionTranslationFilter,http-8080-1] Chain processed normally
[DEBUG,HttpSessionSecurityContextRepository,http-8080-1] SecurityContext contents are anonymous - context will not be stored in HttpSession.
[DEBUG,SecurityContextPersistenceFilter,http-8080-1] SecurityContextHolder now cleared, as request processing completed

相關文章