作者 王勇

添加定时任务,定时删除excel静态资源的缓存文件

@@ -6,11 +6,11 @@ spring: @@ -6,11 +6,11 @@ spring:
6 name: cgonms-provide 6 name: cgonms-provide
7 profiles: 7 profiles:
8 active: dev 8 active: dev
9 -# mvc:  
10 -# static-path-pattern: /exit/**  
11 -# resources:  
12 -# #指定静态资源目录  
13 -# static-locations: file:../excel/ 9 + # mvc:
  10 + # static-path-pattern: /exit/**
  11 + # resources:
  12 + # #指定静态资源目录
  13 + # static-locations: file:../excel/
14 datasource: 14 datasource:
15 type: com.alibaba.druid.pool.DruidDataSource 15 type: com.alibaba.druid.pool.DruidDataSource
16 driver-class-name: oracle.jdbc.OracleDriver 16 driver-class-name: oracle.jdbc.OracleDriver
@@ -22,10 +22,10 @@ spring: @@ -22,10 +22,10 @@ spring:
22 default-property-inclusion: ALWAYS 22 default-property-inclusion: ALWAYS
23 time-zone: GMT+8 23 time-zone: GMT+8
24 date-format: yyyy-MM-dd 24 date-format: yyyy-MM-dd
25 -# security:  
26 -# user:  
27 -# name: admin  
28 -# password: 123456 25 + # security:
  26 + # user:
  27 + # name: admin
  28 + # password: 123456
29 # \u94FE\u8DEF\u8FFD\u8E2A\u914D\u7F6E 29 # \u94FE\u8DEF\u8FFD\u8E2A\u914D\u7F6E
30 zipkin: 30 zipkin:
31 base-url: http://192.168.1.63:9411 31 base-url: http://192.168.1.63:9411
@@ -55,10 +55,10 @@ eureka: @@ -55,10 +55,10 @@ eureka:
55 prefer-ip-address: true 55 prefer-ip-address: true
56 instance-id: ${spring.cloud.client.ip-address}:${server.port} 56 instance-id: ${spring.cloud.client.ip-address}:${server.port}
57 hostname: ${spring.cloud.client.ip-address} 57 hostname: ${spring.cloud.client.ip-address}
58 -# metadata-map:  
59 -# user:  
60 -# name: "admin"  
61 -# passwoed: "123456" 58 + # metadata-map:
  59 + # user:
  60 + # name: "admin"
  61 + # passwoed: "123456"
62 client: 62 client:
63 healthcheck: 63 healthcheck:
64 enabled: true 64 enabled: true
@@ -87,7 +87,9 @@ management: @@ -87,7 +87,9 @@ management:
87 enabled: true 87 enabled: true
88 88
89 path: 89 path:
90 - # 盘的位置  
91 - disc: H  
92 # 文件夹的位置,就一个文件夹 90 # 文件夹的位置,就一个文件夹
93 - dir: exitExcel 91 + dir: excel
  92 +
  93 +delete:
  94 + # 删除7天之前的excel文件
  95 + timeInterval: 604800000
不能预览此文件类型
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
  1 +2020-06-04 15:36:08.093 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  2 +2020-06-04 15:36:11.486 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  3 +2020-06-04 15:36:16.615 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  4 +2020-06-04 15:36:23.664 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  5 +2020-06-04 15:47:21.579 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  6 +2020-06-04 15:47:25.355 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  7 +2020-06-04 15:47:31.881 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  8 +2020-06-04 15:47:40.137 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  9 +2020-06-04 15:52:17.512 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  10 +2020-06-04 15:52:20.922 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  11 +2020-06-04 15:52:26.033 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  12 +2020-06-04 15:52:33.475 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  13 +2020-06-04 15:53:21.167 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  14 +2020-06-04 15:53:24.158 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  15 +2020-06-04 15:53:29.098 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  16 +2020-06-04 15:53:35.478 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  17 +2020-06-04 15:58:44.847 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  18 +2020-06-04 15:58:48.109 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  19 +2020-06-04 15:58:53.650 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  20 +2020-06-04 15:59:01.652 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  21 +2020-06-04 16:01:33.509 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  22 +2020-06-04 16:01:36.503 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  23 +2020-06-04 16:01:41.346 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  24 +2020-06-04 16:01:47.729 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  25 +2020-06-04 16:15:19.618 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  26 +2020-06-04 16:15:22.703 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  27 +2020-06-04 16:15:27.472 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  28 +2020-06-04 16:15:33.826 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  29 +2020-06-04 16:29:41.174 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  30 +2020-06-04 16:29:44.910 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  31 +2020-06-04 16:29:50.109 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  32 +2020-06-04 16:29:56.629 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  33 +2020-06-04 16:33:57.998 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  34 +2020-06-04 16:34:01.102 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  35 +2020-06-04 16:34:05.919 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  36 +2020-06-04 16:34:12.355 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  37 +2020-06-04 16:35:44.480 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  38 +2020-06-04 16:35:47.873 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  39 +2020-06-04 16:35:53.019 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  40 +2020-06-04 16:35:59.502 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  41 +2020-06-04 16:54:36.173 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  42 +2020-06-04 16:54:39.281 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  43 +2020-06-04 16:54:44.159 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  44 +2020-06-04 16:54:50.561 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  45 +2020-06-04 16:55:08.660 [http-nio-9001-exec-7] WARN org.springframework.web.servlet.PageNotFound - No mapping for GET /test.jpg
  46 +2020-06-04 17:18:28.641 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  47 +2020-06-04 17:18:31.698 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  48 +2020-06-04 17:18:36.840 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  49 +2020-06-04 17:18:43.326 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  50 +2020-06-04 17:34:56.027 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  51 +2020-06-04 17:35:00.930 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  52 +2020-06-04 17:35:09.289 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  53 +2020-06-04 17:35:20.051 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  54 +2020-06-04 17:53:59.825 [Thread-67] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591264439825, current=DOWN, previous=UP]
  55 +2020-06-04 17:53:59.841 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591264439841, current=UP, previous=DOWN]
  56 +2020-06-04 17:54:02.893 [http-nio-9001-exec-10] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  57 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Jun 04 17:53:59 CST 2020
  58 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  59 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  60 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  61 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  62 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  63 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  64 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  65 + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50)
  66 + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53)
  67 + at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
  68 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  69 + at java.lang.reflect.Method.invoke(Method.java:498)
  70 + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
  71 + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76)
  72 + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
  73 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278)
  74 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334)
  75 + at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)
  76 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  77 + at java.lang.reflect.Method.invoke(Method.java:498)
  78 + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
  79 + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
  80 + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  81 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
  82 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
  83 + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  84 + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
  85 + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
  86 + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
  87 + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
  88 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  89 + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
  90 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  91 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  92 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  93 + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  94 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  95 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  96 + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
  97 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  98 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  99 + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
  100 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  101 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  102 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  103 + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  104 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  105 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  106 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  107 + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
  108 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  109 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  110 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  111 + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
  112 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  113 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  114 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  115 + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
  116 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  117 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  118 + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99)
  119 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  120 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  121 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
  122 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
  123 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  124 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  125 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  126 + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
  127 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  128 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  129 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  130 + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  131 + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  132 + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  133 + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  134 + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  135 + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  136 + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  137 + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  138 + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  139 + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  140 + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  141 + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  142 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  143 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  144 + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  145 + at java.lang.Thread.run(Thread.java:748)
  146 +Caused by: com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Jun 04 17:53:59 CST 2020
  147 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1356)
  148 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  149 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  150 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  151 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  152 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  153 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  154 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  155 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  156 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  157 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  158 + ... 87 common frames omitted
  159 +2020-06-04 17:54:02.900 [http-nio-9001-exec-10] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  160 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  161 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  162 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  163 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  164 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  165 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  166 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  167 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  168 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  169 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  170 + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50)
  171 + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53)
  172 + at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
  173 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  174 + at java.lang.reflect.Method.invoke(Method.java:498)
  175 + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
  176 + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76)
  177 + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
  178 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278)
  179 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334)
  180 + at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)
  181 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  182 + at java.lang.reflect.Method.invoke(Method.java:498)
  183 + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
  184 + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
  185 + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  186 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
  187 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
  188 + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  189 + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
  190 + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
  191 + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
  192 + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
  193 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  194 + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
  195 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  196 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  197 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  198 + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  199 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  200 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  201 + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
  202 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  203 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  204 + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
  205 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  206 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  207 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  208 + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  209 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  210 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  211 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  212 + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
  213 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  214 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  215 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  216 + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
  217 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  218 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  219 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  220 + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
  221 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  222 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  223 + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99)
  224 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  225 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  226 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
  227 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
  228 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  229 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  230 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  231 + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
  232 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  233 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  234 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  235 + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  236 + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  237 + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  238 + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  239 + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  240 + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  241 + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  242 + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  243 + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  244 + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  245 + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  246 + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  247 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  248 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  249 + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  250 + at java.lang.Thread.run(Thread.java:748)
  251 +2020-06-04 17:54:03.433 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  252 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  253 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  254 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  255 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  256 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  257 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  258 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  259 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  260 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  261 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  262 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  263 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  264 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  265 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  266 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  267 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  268 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  269 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  270 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  271 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  272 + at java.lang.Thread.run(Thread.java:748)
  273 +Caused by: java.sql.SQLException: null
  274 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1470)
  275 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  276 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  277 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  278 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  279 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  280 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  281 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  282 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  283 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  284 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  285 + ... 19 common frames omitted
  286 +Caused by: java.lang.InterruptedException: null
  287 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
  288 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
  289 + at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1897)
  290 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1458)
  291 + ... 29 common frames omitted
  292 +2020-06-04 17:54:03.435 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  293 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  294 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  295 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  296 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  297 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  298 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  299 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  300 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  301 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  302 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  303 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  304 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  305 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  306 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  307 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  308 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  309 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  310 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  311 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  312 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  313 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  314 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  315 + at java.lang.Thread.run(Thread.java:748)
  316 +2020-06-04 17:54:40.495 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  317 +2020-06-04 17:54:47.034 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  318 +2020-06-04 17:54:53.229 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  319 +2020-06-04 17:55:01.558 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  320 +2020-06-04 18:12:54.147 [Thread-59] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591265574147, current=DOWN, previous=UP]
  321 +2020-06-04 18:12:54.162 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591265574162, current=UP, previous=DOWN]
  322 +2020-06-04 18:12:58.139 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  323 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  324 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  325 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  326 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  327 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  328 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  329 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  330 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  331 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  332 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  333 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  334 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  335 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  336 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  337 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  338 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  339 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  340 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  341 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  342 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  343 + at java.lang.Thread.run(Thread.java:748)
  344 +Caused by: java.sql.SQLException: null
  345 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1470)
  346 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  347 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  348 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  349 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  350 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  351 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  352 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  353 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  354 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  355 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  356 + ... 19 common frames omitted
  357 +Caused by: java.lang.InterruptedException: null
  358 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
  359 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
  360 + at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1897)
  361 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1458)
  362 + ... 29 common frames omitted
  363 +2020-06-04 18:12:58.154 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  364 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  365 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  366 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  367 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  368 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  369 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  370 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  371 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  372 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  373 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  374 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  375 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  376 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  377 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  378 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  379 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  380 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  381 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  382 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  383 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  384 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  385 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  386 + at java.lang.Thread.run(Thread.java:748)
  387 +2020-06-04 18:13:22.385 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  388 +2020-06-04 18:13:26.005 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  389 +2020-06-04 18:13:32.314 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  390 +2020-06-04 18:13:39.710 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  391 +2020-06-04 19:28:29.944 [Thread-56] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591270109944, current=DOWN, previous=UP]
  392 +2020-06-04 19:28:29.954 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591270109954, current=UP, previous=DOWN]
  393 +2020-06-04 19:30:26.665 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  394 +2020-06-04 19:30:33.480 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  395 +2020-06-04 19:30:40.928 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  396 +2020-06-04 19:30:52.742 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  397 +2020-06-04 19:34:28.134 [Thread-76] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591270468133, current=DOWN, previous=UP]
  398 +2020-06-04 19:34:28.150 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591270468150, current=UP, previous=DOWN]
  399 +2020-06-04 19:34:31.611 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  400 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  401 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  402 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  403 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  404 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  405 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  406 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  407 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  408 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  409 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  410 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  411 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  412 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  413 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  414 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  415 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  416 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  417 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  418 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  419 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  420 + at java.lang.Thread.run(Thread.java:748)
  421 +Caused by: java.sql.SQLException: null
  422 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1470)
  423 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  424 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  425 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  426 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  427 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  428 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  429 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  430 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  431 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  432 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  433 + ... 19 common frames omitted
  434 +Caused by: java.lang.InterruptedException: null
  435 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
  436 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
  437 + at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1897)
  438 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1458)
  439 + ... 29 common frames omitted
  440 +2020-06-04 19:34:31.619 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  441 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  442 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  443 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  444 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  445 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  446 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  447 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  448 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  449 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  450 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  451 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  452 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  453 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  454 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  455 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  456 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  457 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  458 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  459 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  460 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  461 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  462 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  463 + at java.lang.Thread.run(Thread.java:748)
  464 +2020-06-04 19:36:55.646 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  465 +2020-06-04 19:36:59.847 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  466 +2020-06-04 19:37:06.513 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  467 +2020-06-04 19:37:15.534 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  468 +2020-06-04 20:09:20.876 [Thread-59] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591272560876, current=DOWN, previous=UP]
  469 +2020-06-04 20:09:20.888 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591272560888, current=UP, previous=DOWN]
  470 +2020-06-04 20:09:22.810 [http-nio-9001-exec-6] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  471 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Jun 04 20:09:20 CST 2020
  472 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  473 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  474 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  475 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  476 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  477 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  478 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  479 + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50)
  480 + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53)
  481 + at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
  482 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  483 + at java.lang.reflect.Method.invoke(Method.java:498)
  484 + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
  485 + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76)
  486 + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
  487 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278)
  488 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334)
  489 + at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
  490 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  491 + at java.lang.reflect.Method.invoke(Method.java:498)
  492 + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
  493 + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
  494 + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  495 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
  496 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
  497 + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  498 + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
  499 + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
  500 + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
  501 + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
  502 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  503 + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
  504 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  505 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  506 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  507 + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  508 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  509 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  510 + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
  511 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  512 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  513 + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
  514 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  515 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  516 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  517 + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  518 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  519 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  520 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  521 + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
  522 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  523 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  524 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  525 + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
  526 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  527 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  528 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  529 + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
  530 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  531 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  532 + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99)
  533 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  534 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  535 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
  536 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
  537 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  538 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  539 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  540 + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
  541 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  542 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  543 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  544 + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  545 + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  546 + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  547 + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  548 + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  549 + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  550 + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  551 + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  552 + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  553 + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  554 + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  555 + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  556 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  557 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  558 + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  559 + at java.lang.Thread.run(Thread.java:748)
  560 +Caused by: com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Thu Jun 04 20:09:20 CST 2020
  561 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1356)
  562 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  563 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  564 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  565 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  566 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  567 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  568 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  569 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  570 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  571 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  572 + ... 87 common frames omitted
  573 +2020-06-04 20:09:22.822 [http-nio-9001-exec-6] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  574 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  575 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  576 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  577 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  578 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  579 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  580 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  581 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  582 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  583 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  584 + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50)
  585 + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53)
  586 + at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
  587 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  588 + at java.lang.reflect.Method.invoke(Method.java:498)
  589 + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282)
  590 + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76)
  591 + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60)
  592 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278)
  593 + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334)
  594 + at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
  595 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  596 + at java.lang.reflect.Method.invoke(Method.java:498)
  597 + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
  598 + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
  599 + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  600 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
  601 + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
  602 + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  603 + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
  604 + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
  605 + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
  606 + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
  607 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  608 + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
  609 + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  610 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  611 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  612 + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  613 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  614 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  615 + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
  616 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  617 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  618 + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
  619 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  620 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  621 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  622 + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  623 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  624 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  625 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  626 + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
  627 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  628 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  629 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  630 + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
  631 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  632 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  633 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  634 + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
  635 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  636 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  637 + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99)
  638 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  639 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  640 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
  641 + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
  642 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  643 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  644 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  645 + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
  646 + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
  647 + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  648 + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  649 + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  650 + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  651 + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
  652 + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  653 + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  654 + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  655 + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  656 + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
  657 + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  658 + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
  659 + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
  660 + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  661 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  662 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  663 + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  664 + at java.lang.Thread.run(Thread.java:748)
  665 +2020-06-04 20:09:24.432 [DiscoveryClient-1] WARN com.netflix.discovery.TimedSupervisorTask - task supervisor shutting down, can't accept the task
  666 +2020-06-04 20:09:41.722 [http-nio-9001-exec-6] WARN c.n.d.s.t.decorator.RetryableEurekaHttpClient - Request execution failed with message: com.fasterxml.jackson.core.JsonParseException: processing aborted
  667 + at [Source: (GZIPInputStream); line: 1, column: 18]
  668 +2020-06-04 20:09:41.733 [http-nio-9001-exec-6] WARN com.netflix.discovery.DiscoveryClient - Using default backup registry implementation which does not do anything.
  669 +2020-06-04 20:11:14.288 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
  670 +2020-06-04 20:11:22.992 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  671 +2020-06-04 20:11:32.576 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
  672 +2020-06-04 20:12:02.010 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter
  673 +2020-06-04 20:26:51.148 [Thread-116] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591273611148, current=DOWN, previous=UP]
  674 +2020-06-04 20:26:51.166 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591273611166, current=UP, previous=DOWN]
  675 +2020-06-04 20:26:54.719 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed
  676 +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  677 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  678 + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323)
  679 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119)
  680 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107)
  681 + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102)
  682 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  683 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  684 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  685 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  686 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  687 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  688 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  689 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  690 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  691 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  692 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  693 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  694 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  695 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  696 + at java.lang.Thread.run(Thread.java:748)
  697 +Caused by: java.sql.SQLException: null
  698 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1470)
  699 + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253)
  700 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619)
  701 + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680)
  702 + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615)
  703 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231)
  704 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)
  705 + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)
  706 + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157)
  707 + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
  708 + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
  709 + ... 19 common frames omitted
  710 +Caused by: java.lang.InterruptedException: null
  711 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
  712 + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
  713 + at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1897)
  714 + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1458)
  715 + ... 29 common frames omitted
  716 +2020-06-04 20:26:54.731 [DiscoveryClient-InstanceInfoReplicator-0] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed
  717 +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  718 + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208)
  719 + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  720 + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  721 + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
  722 + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)
  723 + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883)
  724 + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49)
  725 + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82)
  726 + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95)
  727 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getHealthStatus(EurekaHealthCheckHandler.java:110)
  728 + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.getStatus(EurekaHealthCheckHandler.java:106)
  729 + at com.netflix.discovery.DiscoveryClient.refreshInstanceInfo(DiscoveryClient.java:1406)
  730 + at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:117)
  731 + at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
  732 + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  733 + at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
  734 + at java.util.concurrent.FutureTask.run(FutureTask.java)
  735 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
  736 + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  737 + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  738 + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  739 + at java.lang.Thread.run(Thread.java:748)
@@ -161,6 +161,11 @@ @@ -161,6 +161,11 @@
161 <artifactId>joda-time</artifactId> 161 <artifactId>joda-time</artifactId>
162 <version>2.10.5</version> 162 <version>2.10.5</version>
163 </dependency> 163 </dependency>
  164 + <!--定时任务quartz-->
  165 + <dependency>
  166 + <groupId>org.springframework.boot</groupId>
  167 + <artifactId>spring-boot-starter-quartz</artifactId>
  168 + </dependency>
164 <!-- tools end --> 169 <!-- tools end -->
165 170
166 <!-- test start --> 171 <!-- test start -->
@@ -5,11 +5,13 @@ import org.springframework.boot.SpringApplication; @@ -5,11 +5,13 @@ import org.springframework.boot.SpringApplication;
5 import org.springframework.boot.autoconfigure.SpringBootApplication; 5 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
7 import org.springframework.cloud.openfeign.EnableFeignClients; 7 import org.springframework.cloud.openfeign.EnableFeignClients;
  8 +import org.springframework.scheduling.annotation.EnableScheduling;
8 import org.springframework.transaction.annotation.EnableTransactionManagement; 9 import org.springframework.transaction.annotation.EnableTransactionManagement;
9 10
10 /** 11 /**
11 * @author 子诚 12 * @author 子诚
12 */ 13 */
  14 +@EnableScheduling
13 @SpringBootApplication 15 @SpringBootApplication
14 @MapperScan("com.sunyo.wlpt.cgonms.provide.mapper") 16 @MapperScan("com.sunyo.wlpt.cgonms.provide.mapper")
15 @EnableFeignClients 17 @EnableFeignClients
1 package com.sunyo.wlpt.cgonms.provide.config; 1 package com.sunyo.wlpt.cgonms.provide.config;
2 2
3 import org.springframework.beans.factory.annotation.Autowired; 3 import org.springframework.beans.factory.annotation.Autowired;
  4 +import org.springframework.beans.factory.annotation.Value;
4 import org.springframework.context.annotation.Configuration; 5 import org.springframework.context.annotation.Configuration;
5 import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; 6 import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
6 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
7 8
8 /** 9 /**
9 * @author 子诚 10 * @author 子诚
10 - * Description: 11 + * Description:配置静态资源文件夹excel,与src同级。和操作该资源的路径
11 * 时间:2020/6/4 15:31 12 * 时间:2020/6/4 15:31
12 */ 13 */
13 @Configuration 14 @Configuration
14 public class MyWebMvcConfigurer implements WebMvcConfigurer { 15 public class MyWebMvcConfigurer implements WebMvcConfigurer {
  16 + @Value("${path.dir}")
  17 + private String dir;
15 18
16 @Override 19 @Override
17 public void addResourceHandlers(ResourceHandlerRegistry registry) { 20 public void addResourceHandlers(ResourceHandlerRegistry registry) {
18 - registry.addResourceHandler("/exit/**").addResourceLocations("file:excel/");  
19 - registry.addResourceHandler("/exit/excel/**").addResourceLocations("file:excel/");  
20 - registry.addResourceHandler("/exit/downExcel/**").addResourceLocations("file:excel/"); 21 + registry.addResourceHandler("/exit/**").addResourceLocations("file:" + dir + "/");
  22 +// registry.addResourceHandler("/exit/excel/**").addResourceLocations("file:excel/");
  23 +// registry.addResourceHandler("/exit/downExcel/**").addResourceLocations("file:excel/");
  24 +// registry.addResourceHandler("/exit/delete/**").addResourceLocations("file:excel/");
21 WebMvcConfigurer.super.addResourceHandlers(registry); 25 WebMvcConfigurer.super.addResourceHandlers(registry);
22 } 26 }
23 27
1 package com.sunyo.wlpt.cgonms.provide.controller; 1 package com.sunyo.wlpt.cgonms.provide.controller;
2 2
3 3
4 -  
5 import com.google.gson.Gson; 4 import com.google.gson.Gson;
6 import com.google.gson.GsonBuilder; 5 import com.google.gson.GsonBuilder;
7 import com.sunyo.wlpt.cgonms.provide.domain.*; 6 import com.sunyo.wlpt.cgonms.provide.domain.*;
@@ -136,7 +135,7 @@ public class NmsController { @@ -136,7 +135,7 @@ public class NmsController {
136 135
137 sendMsgByWebsocket(resultJs, sid); 136 sendMsgByWebsocket(resultJs, sid);
138 } 137 }
139 - index = index + i + 1; 138 + index = index + i;
140 //完成一次,就等待。每次减1,为0的时候往下执行 139 //完成一次,就等待。每次减1,为0的时候往下执行
141 latch.await(); 140 latch.await();
142 } 141 }
@@ -155,7 +154,7 @@ public class NmsController { @@ -155,7 +154,7 @@ public class NmsController {
155 String resultJs = GsonUtils.toJsonStr(resultWs); 154 String resultJs = GsonUtils.toJsonStr(resultWs);
156 sendMsgByWebsocket(resultJs, sid); 155 sendMsgByWebsocket(resultJs, sid);
157 } 156 }
158 - index = index + i; 157 + index = index + i - 1;
159 //完成一次,就等待。每次减1,为0的时候往下执行 158 //完成一次,就等待。每次减1,为0的时候往下执行
160 latch.await(); 159 latch.await();
161 } 160 }
  1 +package com.sunyo.wlpt.cgonms.provide.excle;
  2 +
  3 +import com.sunyo.wlpt.cgonms.provide.response.ResultJson;
  4 +import org.springframework.scheduling.annotation.Scheduled;
  5 +import org.springframework.web.bind.annotation.GetMapping;
  6 +import org.springframework.web.bind.annotation.PutMapping;
  7 +import org.springframework.web.bind.annotation.RequestMapping;
  8 +import org.springframework.web.bind.annotation.RestController;
  9 +
  10 +import javax.annotation.Resource;
  11 +
  12 +/**
  13 + * @author 子诚
  14 + * Description:定时任务每天凌晨4点,删除一周前的excel文件夹下的excel文件
  15 + * 时间:2020/6/5 17:11
  16 + */
  17 +@RequestMapping("exit")
  18 +@RestController
  19 +public class DeleteExcel {
  20 + @Resource
  21 + private DeleteExpiredFile deleteExpiredFile;
  22 +
  23 +
  24 + // @Scheduled(cron="0 48 18 * * ? ")
  25 + @Scheduled(cron = "0 0 4 * * ? ")
  26 + @GetMapping("/delete")
  27 + public ResultJson deleteExcel() {
  28 + ResultJson result = new ResultJson();
  29 + try {
  30 + deleteExpiredFile.deleteExpiredFileTask();
  31 + result.setMsg("清除一周前的文件,成功");
  32 + result.setCode("200");
  33 + } catch (Exception e) {
  34 + result.setMsg("清除一周前的文件,失败");
  35 + result.setCode("400");
  36 + }
  37 + return result;
  38 + }
  39 +}
  1 +package com.sunyo.wlpt.cgonms.provide.excle;
  2 +
  3 +import com.mchange.v2.log.log4j.Log4jMLog;
  4 +import lombok.extern.slf4j.Slf4j;
  5 +import org.springframework.beans.factory.annotation.Value;
  6 +import org.springframework.stereotype.Component;
  7 +
  8 +import java.io.File;
  9 +import java.util.Date;
  10 +
  11 +/**
  12 + * @author 子诚
  13 + * Description:删除静态资源文件夹excel(与src同级)下的一个星期之前的excel文件
  14 + * 时间:2020/6/5 16:47
  15 + */
  16 +@Slf4j
  17 +@Component
  18 +public class DeleteExpiredFile {
  19 +
  20 + /**
  21 + * 文件夹地址
  22 + */
  23 + @Value("${path.dir}")
  24 + private String dir;
  25 +
  26 + /**
  27 + * 设置时间间隔
  28 + */
  29 + @Value("${delete.timeInterval}")
  30 + long timeInterval;
  31 +
  32 + public void deleteExpiredFileTask() {
  33 + //File.separator
  34 + String path = dir + "/";
  35 + File file = new File(path);
  36 + deleteExpiredFile(file);
  37 + }
  38 +
  39 + /**
  40 + * 判断是文件还是文件夹?
  41 + *
  42 + * @param file 文件或者文件夹
  43 + */
  44 + private void deleteExpiredFile(File file) {
  45 + //如果文件或者文件夹不存在
  46 + if (!file.exists()) {
  47 + return;
  48 + }
  49 + // 如果不是文件夹
  50 + if (!file.isDirectory()) {
  51 + determineExpiredFile(file);
  52 + }
  53 + // 如果是文件夹,遍历文件夹中的所有文件
  54 + else {
  55 + for (File f : file.listFiles()) {
  56 + deleteExpiredFile(f);
  57 + log.info("删除了文件" + f);
  58 + }
  59 + }
  60 + }
  61 +
  62 + /**
  63 + * 删除七天(一周)前的所有文件
  64 + *
  65 + * @param file 文件
  66 + */
  67 + private void determineExpiredFile(File file) {
  68 + // 取出存在文件最后的操作时间
  69 + long lastModifiedTime = file.lastModified();
  70 + // 当前时间的时间戳
  71 + long currentTime = System.currentTimeMillis();
  72 + // 设置时间范围
  73 +// long timeInterval = 7 * 24 * 60 * 60 * 1000;
  74 + // 删除七天(一周)前的所有文件
  75 + if (currentTime - lastModifiedTime > timeInterval) {
  76 + file.delete();
  77 + }
  78 + }
  79 +}
@@ -19,15 +19,16 @@ import java.net.InetAddress; @@ -19,15 +19,16 @@ import java.net.InetAddress;
19 @RestController 19 @RestController
20 @RequestMapping("/exit") 20 @RequestMapping("/exit")
21 public class DownExcel { 21 public class DownExcel {
  22 +
22 @Value("${server.port}") 23 @Value("${server.port}")
23 private String port; 24 private String port;
24 25
25 @GetMapping("/downExcel") 26 @GetMapping("/downExcel")
26 public ResultJson downExcel() throws Exception { 27 public ResultJson downExcel() throws Exception {
27 ResultJson result = new ResultJson(); 28 ResultJson result = new ResultJson();
28 - 29 + //获取当前服务器的ip地址
29 String ip = InetAddress.getLocalHost().getHostAddress(); 30 String ip = InetAddress.getLocalHost().getHostAddress();
30 - String address = "http://" +ip+":"+port+"/"+"exit/"; 31 + String address = "http://" + ip + ":" + port + "/exit/";
31 result.setCode("200"); 32 result.setCode("200");
32 result.setMsg(address); 33 result.setMsg(address);
33 return result; 34 return result;
@@ -20,7 +20,7 @@ import java.util.UUID; @@ -20,7 +20,7 @@ import java.util.UUID;
20 20
21 /** 21 /**
22 * @author 子诚 22 * @author 子诚
23 - * Description:导入Excel到本地 23 + * Description:导入Excel到静态资源文件夹excel(与src同级)
24 * 时间:2020/5/29 10:04 24 * 时间:2020/5/29 10:04
25 */ 25 */
26 @Slf4j 26 @Slf4j
@@ -28,8 +28,6 @@ import java.util.UUID; @@ -28,8 +28,6 @@ import java.util.UUID;
28 @RequestMapping("/exit") 28 @RequestMapping("/exit")
29 public class ExitExcel { 29 public class ExitExcel {
30 30
31 - @Value("${path.disc}")  
32 - private String disc;  
33 @Value("${path.dir}") 31 @Value("${path.dir}")
34 private String dir; 32 private String dir;
35 33
@@ -162,8 +160,7 @@ public class ExitExcel { @@ -162,8 +160,7 @@ public class ExitExcel {
162 // 设置文件名 160 // 设置文件名
163 title = file_name + ".xls"; 161 title = file_name + ".xls";
164 162
165 -// String filePath = disc + ":" + File.separator + dir + File.separator + title;  
166 - String filePath = "excel/" + title; 163 + String filePath = dir + "/" + title;
167 /** 164 /**
168 * 创建文件夹 165 * 创建文件夹
169 */ 166 */