如何解决CORS问题并迫使Spring满足我的要求?

时间:2019-01-02 17:59:51

标签: spring-boot spring-mvc

错误:

  

2019-01-02 19:45:00.030调试7812-[nio-8081-exec-6] o.s.web.cors.DefaultCorsProcessor:拒绝CORS请求,因为不允许使用'GET'请求方法

该服务甚至不应该知道任何CORS,它是网关背后的后端服务!

如何在我的服务中完全禁用所有CORS铃声?

堆栈:Spring Cloud Finchley,Boot 2.0,MVC,安全性

请建议我尝试一下,但不要包括任何@ CrossOrigin,CorsFilter等-我询问如何禁用和删除的东西。

这是完整的输出

2019-01-02 19:44:59.867 TRACE 7812 --- [nio-8081-exec-5] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:44:59.868 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:44:59.868 TRACE 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:44:59.868 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', GET]
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/logout'
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', POST]
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'POST /logout
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', PUT]
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'PUT /logout
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', DELETE]
2019-01-02 19:44:59.869 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'DELETE /logout
2019-01-02 19:44:59.871 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.web.util.matcher.OrRequestMatcher  : No matches found
2019-01-02 19:44:59.871 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2AuthenticationProcessingFilter'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] p.a.OAuth2AuthenticationProcessingFilter : Authentication success: org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 6 of 11 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 7 of 11 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 8 of 11 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.AnonymousAuthenticationFilter  : SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 9 of 11 in additional filter chain; firing Filter: 'SessionManagementFilter'
2019-01-02 19:44:59.873 DEBUG 7812 --- [nio-8081-exec-5] s.CompositeSessionAuthenticationStrategy : Delegating to org.springframework.security.web.authentication.session.ChangeSessionIdAuthenticationStrategy@1146e32e
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 10 of 11 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 11 of 11 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/v2/api-docs'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-resources'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-resources/**'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/configuration/ui'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/configuration/security'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-ui.html'
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/webjars/**'
2019-01-02 19:44:59.874 TRACE 7812 --- [nio-8081-exec-5] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:44:59.874 TRACE 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:44:59.874 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.i.FilterSecurityInterceptor    : Secure object: FilterInvocation: URL: /v1/dictionaries/companies; Attributes: [#oauth2.throwOnError(hasAnyRole('ROLE_ADMIN','ROLE_TSEOU_EMPLOYEE'))]
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.i.FilterSecurityInterceptor    : Previously Authenticated: org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.access.vote.AffirmativeBased       : Voter: org.springframework.security.web.access.expression.WebExpressionVoter@537b93ba, returned: 1
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.i.FilterSecurityInterceptor    : Authorization successful
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.i.FilterSecurityInterceptor    : RunAsManager did not change Authentication object
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies reached end of additional filter chain; proceeding with original chain
2019-01-02 19:44:59.875 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Bound request context to thread: SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ org.apache.catalina.connector.RequestFacade@1ef6d841]]
2019-01-02 19:44:59.875 DEBUG 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : DispatcherServlet with name 'dispatcherServlet' processing GET request for [/v1/dictionaries/companies]
2019-01-02 19:44:59.875 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping@121f9c52] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:44:59.875 TRACE 7812 --- [nio-8081-exec-5] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:44:59.875 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler map [springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping@493250cf] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:44:59.877 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping@5a23b9d1] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:44:59.877 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping@7668f8fd] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:44:59.877 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping@42257df7] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:44:59.877 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:44:59.877 TRACE 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:44:59.877 DEBUG 7812 --- [nio-8081-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:44:59.878 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Testing handler adapter [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter@769a9b7a]
2019-01-02 19:44:59.878 DEBUG 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Last-Modified value for [/v1/dictionaries/companies] is: -1
2019-01-02 19:44:59.878 DEBUG 7812 --- [nio-8081-exec-5] o.s.web.cors.DefaultCorsProcessor        : Rejecting CORS request because 'GET' request method is not allowed
2019-01-02 19:44:59.878 TRACE 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ org.apache.catalina.connector.RequestFacade@1ef6d841]]
2019-01-02 19:44:59.878 DEBUG 7812 --- [nio-8081-exec-5] o.s.web.servlet.DispatcherServlet        : Successfully completed request
2019-01-02 19:44:59.878 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.a.ExceptionTranslationFilter     : Chain processed normally
2019-01-02 19:44:59.878 DEBUG 7812 --- [nio-8081-exec-5] o.s.s.w.header.writers.HstsHeaderWriter  : Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher@5a72b118
2019-01-02 19:44:59.879 DEBUG 7812 --- [nio-8081-exec-5] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2019-01-02 19:45:00.011 TRACE 7812 --- [nio-8081-exec-6] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:45:00.014 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:45:00.014 TRACE 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:45:00.014 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:45:00.015 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2019-01-02 19:45:00.015 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', GET]
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/logout'
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', POST]
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'POST /logout
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', PUT]
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'PUT /logout
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/logout', DELETE]
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Request 'GET /v1/dictionaries/companies' doesn't match 'DELETE /logout
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.web.util.matcher.OrRequestMatcher  : No matches found
2019-01-02 19:45:00.016 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2AuthenticationProcessingFilter'
2019-01-02 19:45:00.019 DEBUG 7812 --- [nio-8081-exec-6] p.a.OAuth2AuthenticationProcessingFilter : Authentication success: org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER
2019-01-02 19:45:00.019 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 6 of 11 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
2019-01-02 19:45:00.019 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 7 of 11 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
2019-01-02 19:45:00.019 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 8 of 11 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.AnonymousAuthenticationFilter  : SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 9 of 11 in additional filter chain; firing Filter: 'SessionManagementFilter'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] s.CompositeSessionAuthenticationStrategy : Delegating to org.springframework.security.web.authentication.session.ChangeSessionIdAuthenticationStrategy@1146e32e
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 10 of 11 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies at position 11 of 11 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/v2/api-docs'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-resources'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-resources/**'
2019-01-02 19:45:00.020 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/configuration/ui'
2019-01-02 19:45:00.025 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/configuration/security'
2019-01-02 19:45:00.025 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/swagger-ui.html'
2019-01-02 19:45:00.025 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/v1/dictionaries/companies'; against '/webjars/**'
2019-01-02 19:45:00.025 TRACE 7812 --- [nio-8081-exec-6] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:45:00.026 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:45:00.026 TRACE 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:45:00.026 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:45:00.026 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.i.FilterSecurityInterceptor    : Secure object: FilterInvocation: URL: /v1/dictionaries/companies; Attributes: [#oauth2.throwOnError(hasAnyRole('ROLE_ADMIN','ROLE_TSEOU_EMPLOYEE'))]
2019-01-02 19:45:00.027 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.i.FilterSecurityInterceptor    : Previously Authenticated: org.springframework.security.oauth2.provider.OAuth2Authentication@bf0cc0fd: Principal: admin; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=172.29.147.118, tokenType=BearertokenValue=<TOKEN>; Granted Authorities: ROLE_ADMIN, ROLE_USER
2019-01-02 19:45:00.027 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.access.vote.AffirmativeBased       : Voter: org.springframework.security.web.access.expression.WebExpressionVoter@537b93ba, returned: 1
2019-01-02 19:45:00.027 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.i.FilterSecurityInterceptor    : Authorization successful
2019-01-02 19:45:00.027 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.i.FilterSecurityInterceptor    : RunAsManager did not change Authentication object
2019-01-02 19:45:00.027 DEBUG 7812 --- [nio-8081-exec-6] o.s.security.web.FilterChainProxy        : /v1/dictionaries/companies reached end of additional filter chain; proceeding with original chain
2019-01-02 19:45:00.028 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Bound request context to thread: SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ org.apache.catalina.connector.RequestFacade@1ef6d841]]
2019-01-02 19:45:00.028 DEBUG 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : DispatcherServlet with name 'dispatcherServlet' processing GET request for [/v1/dictionaries/companies]
2019-01-02 19:45:00.028 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping@121f9c52] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.w.s.handler.SimpleUrlHandlerMapping  : No handler mapping found for [/v1/dictionaries/companies]
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler map [springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping@493250cf] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping@5a23b9d1] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping@7668f8fd] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler map [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping@42257df7] in DispatcherServlet with name 'dispatcherServlet'
2019-01-02 19:45:00.029 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Looking up handler method for path /v1/dictionaries/companies
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Found 1 matching mapping(s) for [/v1/dictionaries/companies] : [{[/v1/dictionaries/companies],methods=[GET]}]
2019-01-02 19:45:00.029 DEBUG 7812 --- [nio-8081-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Returning handler method [public org.springframework.http.ResponseEntity<java.lang.Iterable<ua.aval.cards.dictionary.entity.Company>> ua.aval.cards.dictionary.controller.CompanyController.getAll()]
2019-01-02 19:45:00.029 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Testing handler adapter [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter@769a9b7a]
2019-01-02 19:45:00.029 DEBUG 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Last-Modified value for [/v1/dictionaries/companies] is: -1
2019-01-02 19:45:00.030 DEBUG 7812 --- [nio-8081-exec-6] o.s.web.cors.DefaultCorsProcessor        : Rejecting CORS request because 'GET' request method is not allowed
2019-01-02 19:45:00.030 TRACE 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ FirewalledRequest[ org.apache.catalina.connector.RequestFacade@1ef6d841]]
2019-01-02 19:45:00.030 DEBUG 7812 --- [nio-8081-exec-6] o.s.web.servlet.DispatcherServlet        : Successfully completed request
2019-01-02 19:45:00.031 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.a.ExceptionTranslationFilter     : Chain processed normally
2019-01-02 19:45:00.031 DEBUG 7812 --- [nio-8081-exec-6] o.s.s.w.header.writers.HstsHeaderWriter  : Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher@5a72b118
2019-01-02 19:45:00.031 DEBUG 7812 --- [nio-8081-exec-6] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2019-01-02 19:49:08.815  INFO 7812 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2019-01-02 19:54:08.830  INFO 7812 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration
2019-01-02 19:59:08.850  INFO 7812 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

0 个答案:

没有答案