## 改依赖 ![](https://img.kancloud.cn/20/4a/204a21c3c388d242910cd1ba1cd286fd_1903x393.png) ![](https://img.kancloud.cn/05/a3/05a3ef71c7b4c4e6ed36e238f244c7a2_1441x354.png) ## 改配置 ![](https://img.kancloud.cn/b7/77/b777b88b5c931f7b73951fe9589fb5f1_1410x361.png) ![](https://img.kancloud.cn/eb/db/ebdbe1e4291754d7824d49e78069b6cd_1920x506.png) ![](https://img.kancloud.cn/6c/07/6c07cfa80cb32a5af440ca3046621962_1920x556.png) log-center.yaml ``` #端口 server: # port: 5000 #固定端口 port: 5006 #随机端口 management: endpoints: web: exposure: include: "*" endpoint: health: show-details: always spring: datasource: druid: # JDBC 配置(驱动类自动从url的mysql识别,数据源类型自动识别) url: jdbc:mysql://59.110.164.254:3306/log-center?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false username: root password: root driver-class-name: com.mysql.jdbc.Driver #连接池配置(通常来说,只需要修改initialSize、minIdle、maxActive initial-size: 1 max-active: 20 min-idle: 1 # 配置获取连接等待超时的时间 max-wait: 60000 #打开PSCache,并且指定每个连接上PSCache的大小 pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 validation-query: SELECT 'x' test-on-borrow: false test-on-return: false test-while-idle: true #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 time-between-eviction-runs-millis: 60000 #配置一个连接在池中最小生存的时间,单位是毫秒 min-evictable-idle-time-millis: 300000 filters: stat,wall # WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter #是否启用StatFilter默认值true web-stat-filter.enabled: true web-stat-filter.url-pattern: /* web-stat-filter.exclusions: "*.js , *.gif ,*.jpg ,*.png ,*.css ,*.ico , /druid/*" web-stat-filter.session-stat-max-count: 1000 web-stat-filter.profile-enable: true # StatViewServlet配置 #展示Druid的统计信息,StatViewServlet的用途包括:1.提供监控信息展示的html页面2.提供监控信息的JSON API #是否启用StatViewServlet默认值true stat-view-servlet.enabled: true #根据配置中的url-pattern来访问内置监控页面,如果是上面的配置,内置监控页面的首页是/druid/index.html例如: #http://110.76.43.235:9000/druid/index.html #http://110.76.43.235:8080/mini-web/druid/index.html stat-view-servlet.url-pattern: /druid/* #允许清空统计数据 stat-view-servlet.reset-enable: true stat-view-servlet.login-username: admin stat-view-servlet.login-password: admin #StatViewSerlvet展示出来的监控信息比较敏感,是系统运行的内部情况,如果你需要做访问控制,可以配置allow和deny这两个参数 #deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。如果allow没有配置或者为空,则允许所有访问 #配置的格式 #<IP> #或者<IP>/<SUB_NET_MASK_size>其中128.242.127.1/24 #24表示,前面24位是子网掩码,比对的时候,前面24位相同就匹配,不支持IPV6。 #stat-view-servlet.allow= #stat-view-servlet.deny=128.242.127.1/24,128.242.128.1 # Spring监控配置,说明请参考Druid Github Wiki,配置_Druid和Spring关联监控配置 #aop-patterns= # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔 ################### mysq end ########################## redis: ################### redis 单机版 start ########################## host: 59.110.164.254 port: 6379 timeout: 6000 database: 8 lettuce: pool: max-active: 10 # 连接池最大连接数(使用负值表示没有限制),如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽) max-idle: 8 # 连接池中的最大空闲连接 ,默认值也是8 max-wait: 100 # # 等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException min-idle: 2 # 连接池中的最小空闲连接 ,默认值也是0 shutdown-timeout: 100ms ################### redis 单机版 end ########################## # cluster: # nodes: 130.75.131.237:7000,130.75.131.238:7000,130.75.131.239:7000,130.75.131.237:7001,130.75.131.238:7001,130.75.131.239:7001 # #130.75.131.237:7000,130.75.131.238:7000,130.75.131.239:7000,130.75.131.237:7001,130.75.131.238:7001,130.75.131.239:7001 # #192.168.3.157:7000,192.168.3.158:7000,192.168.3.159:7000,192.168.3.157:7001,192.168.3.158:7001,192.168.3.159:7001 # timeout: 1000 # 连接超时时间(毫秒) # lettuce: # pool: # max-active: 10 # 连接池最大连接数(使用负值表示没有限制),如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽) # max-idle: 8 # 连接池中的最大空闲连接 ,默认值也是8 # max-wait: 100 # # 等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException # min-idle: 2 # 连接池中的最小空闲连接 ,默认值也是0 # shutdown-timeout: 100ms # zipkin: # base-url: http://127.0.0.1:11008 #elasticsearch服务配置 data: elasticsearch: cluster-name: elasticsearch cluster-nodes: 47.99.88.28:9300 repositories: enabled: true properties: transport: tcp: connect_timeout: 120s # 异常处理 elasticsearch: rest: uris: 47.99.88.28:9200 # 设置连接超时时间 ##spring.data.elasticsearch.properties.transport.tcp.connect_timeout=120s # http: # multipart: # enabled: true # max-file-size: 2MB # max-request-size: 10MB # file-size-threshold: 5MB security: oauth2: ignored: /files-anon/** , /doc.html ,/upload.html , /uploads.html ,/js/** ,/document.html token: store: type: redis #设置最大超时时间 ribbon: ServerListRefreshInterval: 10 #刷新服务列表源的间隔时间 httpclient: enabled: false okhttp: enabled: true ReadTimeout: 90000 ConnectTimeout: 90000 OkToRetryOnAllOperations: true MaxAutoRetries: 1 MaxAutoRetriesNextServer: 1 #设置最大容错超时时间 hystrix: command: default: execution: timeout: enabled: true isolation: thread: timeoutInMilliseconds: 90000 logging: level: com.open.capacity: INFO org.hibernate: INFO org.hibernate.type.descriptor.sql.BasicBinder: TRACE org.hibernate.type.descriptor.sql.BasicExtractor: TRACE # com.neusoft: DEBUG # com.netflix: DEBUG #用于心跳检测输出的日志 ``` ## 启动 ``` [log-center:130.75.131.208:0000] [,] 2019-04-14 15:34:57.265 INFO 6760 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6b93acaa] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.3.RELEASE) [log-center:130.75.131.208:0000] [,] 2019-04-14 15:35:10.938 INFO 6760 [main] com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Loading nacos data, dataId: 'common.yaml', group: 'DEFAULT_GROUP' [log-center:130.75.131.208:0000] [,] 2019-04-14 15:35:11.076 INFO 6760 [main] com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Loading nacos data, dataId: 'log-center.yaml', group: 'DEFAULT_GROUP' [log-center:130.75.131.208:0000] [,] 2019-04-14 15:35:11.096 INFO 6760 [main] org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='log-center.yaml'}, NacosPropertySource {name='common.yaml'}]} [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:11.427 INFO 6760 [main] com.open.capacity.EsLogApp No active profile set, falling back to default profiles: default [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:20.491 WARN 6760 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:20.497 WARN 6760 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:24.783 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Multiple Spring Data modules found, entering strict repository configuration mode! [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:24.789 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Bootstrapping Spring Data repositories in DEFAULT mode. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:25.942 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Finished Spring Data repository scanning in 1096ms. Found 3 repository interfaces. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.003 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Multiple Spring Data modules found, entering strict repository configuration mode! [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.010 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Bootstrapping Spring Data repositories in DEFAULT mode. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.194 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.open.capacity.es.dao.NginxLogDao. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.196 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.open.capacity.es.dao.ServiceLogDao. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.197 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.open.capacity.es.dao.SqlSlowDao. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.198 INFO 6760 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Finished Spring Data repository scanning in 128ms. Found 0 repository interfaces. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:26.645 WARN 6760 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.098 INFO 6760 [main] org.springframework.cloud.context.scope.GenericScope BeanFactory id=348e424b-2b38-372c-9ccb-4235675e04e2 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.194 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Post-processing PropertySource instances [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.276 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource bootstrapProperties [org.springframework.core.env.CompositePropertySource] to EncryptableEnumerablePropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.403 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.404 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.404 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.404 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource applicationConfig: [classpath:/application.properties] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.405 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource applicationConfig: [classpath:/bootstrap.yml] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:29.406 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource defaultProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:31.391 INFO 6760 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$4f79a9ad] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:31.527 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:31.531 INFO 6760 [main] com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:32.109 INFO 6760 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:32.473 INFO 6760 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$7321178a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:32.623 INFO 6760 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6b93acaa] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.554 INFO 6760 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat initialized with port(s): 5006 (http) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.632 INFO 6760 [main] org.apache.coyote.http11.Http11NioProtocol Initializing ProtocolHandler ["http-nio-5006"] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.675 INFO 6760 [main] org.apache.catalina.core.StandardService Starting service [Tomcat] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.676 INFO 6760 [main] org.apache.catalina.core.StandardEngine Starting Servlet engine: [Apache Tomcat/9.0.16] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.719 INFO 6760 [main] org.apache.catalina.core.AprLifecycleListener An older version [1.2.14] of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of [1.2.21] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.719 INFO 6760 [main] org.apache.catalina.core.AprLifecycleListener Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2]. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.722 INFO 6760 [main] org.apache.catalina.core.AprLifecycleListener APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:35.722 INFO 6760 [main] org.apache.catalina.core.AprLifecycleListener APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:36.992 INFO 6760 [main] org.apache.catalina.core.AprLifecycleListener OpenSSL successfully initialized [OpenSSL 1.0.2l 25 May 2017] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:38.784 INFO 6760 [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring embedded WebApplicationContext [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:38.785 INFO 6760 [main] org.springframework.web.context.ContextLoader Root WebApplicationContext: initialization completed in 27293 ms [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:38.865 INFO 6760 [main] com.alibaba.cloud.sentinel.SentinelWebAutoConfiguration [Sentinel Starter] register Sentinel CommonFilter with urlPatterns: [/*]. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:51.160 INFO 6760 [main] com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure Init DruidDataSource Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:54.029 INFO 6760 [main] com.alibaba.druid.pool.DruidDataSource {dataSource-1} inited [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:57.996 INFO 6760 [main] org.elasticsearch.plugins.PluginsService no modules loaded [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:57.999 INFO 6760 [main] org.elasticsearch.plugins.PluginsService loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:57.999 INFO 6760 [main] org.elasticsearch.plugins.PluginsService loaded plugin [org.elasticsearch.join.ParentJoinPlugin] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:58.000 INFO 6760 [main] org.elasticsearch.plugins.PluginsService loaded plugin [org.elasticsearch.percolator.PercolatorPlugin] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:58.001 INFO 6760 [main] org.elasticsearch.plugins.PluginsService loaded plugin [org.elasticsearch.script.mustache.MustachePlugin] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:35:58.001 INFO 6760 [main] org.elasticsearch.plugins.PluginsService loaded plugin [org.elasticsearch.transport.Netty4Plugin] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:08.950 INFO 6760 [main] org.springframework.data.elasticsearch.client.TransportClientFactoryBean Adding transport node : 47.99.88.28:9300 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:18.290 INFO 6760 [main] com.alibaba.nacos.client.naming initializer namespace from System Property :null [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:18.293 INFO 6760 [main] com.alibaba.nacos.client.naming initializer namespace from System Environment :null [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:18.300 INFO 6760 [main] com.alibaba.nacos.client.naming initializer namespace from System Property :null _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.0.6 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:27.540 INFO 6760 [main] org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver Exposing 23 endpoint(s) beneath base path '/actuator' [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.040 INFO 6760 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Initializing ExecutorService [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.043 INFO 6760 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Initializing ExecutorService 'taskExecutor' [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.212 INFO 6760 [main] springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.686 WARN 6760 [main] com.netflix.config.sources.URLConfigurationSource No URLs will be polled as dynamic configuration sources. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.686 INFO 6760 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.708 WARN 6760 [main] com.netflix.config.sources.URLConfigurationSource No URLs will be polled as dynamic configuration sources. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:28.709 INFO 6760 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:31.028 INFO 6760 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler Initializing ExecutorService [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:34.923 INFO 6760 [main] org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration Using generated security password: 6d99ea2b-8417-41bf-af14-f608efa513c3 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:36.966 INFO 6760 [main] org.springframework.security.web.DefaultSecurityFilterChain Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1743c249, org.springframework.security.web.context.SecurityContextPersistenceFilter@1e7245da, org.springframework.security.web.header.HeaderWriterFilter@5f9d29c4, org.springframework.security.web.authentication.logout.LogoutFilter@7d727123, org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter@4c14ed24, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@77e8492f, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@53251e03, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@2531049f, org.springframework.security.web.session.SessionManagementFilter@73602e88, org.springframework.security.web.access.ExceptionTranslationFilter@4044f07b, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2c2f4769] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:42.534 INFO 6760 [main] springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper Context refreshed [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:42.632 INFO 6760 [main] springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper Found 1 custom documentation plugin(s) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:42.776 INFO 6760 [main] springfox.documentation.spring.web.scanners.ApiListingReferenceScanner Scanning for api listing references [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.650 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_1 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.654 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_2 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.657 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_3 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.666 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingDELETE_1 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.671 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_4 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.682 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_5 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.689 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_6 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.694 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_7 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.698 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_8 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.706 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingDELETE_2 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.710 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_9 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.714 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_10 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.731 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_11 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.735 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_12 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.738 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_13 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.742 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_14 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.744 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_15 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.748 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_1 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.752 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_16 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.755 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_17 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.757 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_18 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.760 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_19 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.763 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_20 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.768 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_21 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.783 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_22 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.787 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_23 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.794 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_2 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.816 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_24 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.825 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_25 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.853 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_3 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.859 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_26 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.863 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_27 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.930 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: getPageUsingGET_1 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:43.948 INFO 6760 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: getPageUsingGET_2 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.067 INFO 6760 [main] org.apache.coyote.http11.Http11NioProtocol Starting ProtocolHandler ["http-nio-5006"] [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.149 INFO 6760 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat started on port(s): 5006 (http) with context path '' [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.167 INFO 6760 [main] com.alibaba.nacos.client.naming [BEAT] adding beat: {"cluster":"DEFAULT","ip":"130.75.131.208","metadata":{"preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":5006,"scheduled":false,"serviceName":"DEFAULT_GROUP@@log-center","stopped":false,"weight":1.0} to beat map. [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.637 INFO 6760 [main] com.alibaba.nacos.client.naming [REGISTER-SERVICE] 95a4a445-f548-4c0d-98fc-a471454dabec registering service DEFAULT_GROUP@@log-center with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":5006,"weight":1.0} [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.749 INFO 6760 [main] com.alibaba.cloud.nacos.registry.NacosServiceRegistry nacos registry, log-center 130.75.131.208:5006 register finished [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.755 INFO 6760 [main] com.open.capacity.EsLogApp Started EsLogApp in 126.297 seconds (JVM running for 132.692) [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.799 INFO 6760 [main] com.alibaba.nacos.client.config.impl.ClientWorker [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [subscribe] log-center.yaml+DEFAULT_GROUP+95a4a445-f548-4c0d-98fc-a471454dabec [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.802 INFO 6760 [main] com.alibaba.nacos.client.config.impl.CacheData [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [add-listener] ok, tenant=95a4a445-f548-4c0d-98fc-a471454dabec, dataId=log-center.yaml, group=DEFAULT_GROUP, cnt=1 [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.803 INFO 6760 [main] com.alibaba.nacos.client.config.impl.ClientWorker [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [subscribe] common.yaml+DEFAULT_GROUP+95a4a445-f548-4c0d-98fc-a471454dabec [log-center:130.75.131.208:5006] [,] 2019-04-14 15:36:44.803 INFO 6760 [main] com.alibaba.nacos.client.config.impl.CacheData [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [add-listener] ok, tenant=95a4a445-f548-4c0d-98fc-a471454dabec, dataId=common.yaml, group=DEFAULT_GROUP, cnt=1 ``` ![](https://img.kancloud.cn/07/66/07669df806abc55d166b0f8a0b22a637_1920x472.png) ## log-center内部原理请参考03.模块详解部分