mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-04-27 01:40:50 +00:00
搜索服务完成
This commit is contained in:
parent
c6e6a1df9f
commit
a310512221
82
doc/es/index_create.txt
Normal file
82
doc/es/index_create.txt
Normal file
@ -0,0 +1,82 @@
|
||||
PUT /novel
|
||||
{
|
||||
"mappings" : {
|
||||
"book" : {
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"authorId" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"authorName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart",
|
||||
"boost": 1.9
|
||||
},
|
||||
|
||||
"bookName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart",
|
||||
"boost": 2
|
||||
},
|
||||
|
||||
"bookDesc" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart",
|
||||
"boost": 0.1
|
||||
},
|
||||
|
||||
"bookStatus" : {
|
||||
"type" : "short"
|
||||
},
|
||||
|
||||
"catId" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
|
||||
"catName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart",
|
||||
"boost": 1.0
|
||||
},
|
||||
|
||||
"lastIndexId" : {
|
||||
"type" : "long"
|
||||
},
|
||||
|
||||
"lastIndexName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart",
|
||||
"boost": 0.1
|
||||
},
|
||||
|
||||
"lastIndexUpdateTime" : {
|
||||
"type": "keyword"
|
||||
},
|
||||
|
||||
"picUrl" : {
|
||||
"type" : "keyword"
|
||||
},
|
||||
|
||||
"score" : {
|
||||
"type" : "float"
|
||||
},
|
||||
|
||||
"wordCount" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
|
||||
"workDirection" : {
|
||||
"type" : "short"
|
||||
},
|
||||
|
||||
"visitCount" : {
|
||||
"type": "long"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -25,7 +25,7 @@ spring:
|
||||
#是否开启搜索引擎,1:开启,0:不开启
|
||||
enable: 0
|
||||
jest:
|
||||
uris: http://198.245.61.51:9200
|
||||
uris: http://127.0.0.1:9200
|
||||
|
||||
#Redis服务器IP
|
||||
redis:
|
||||
|
282
logs/author-service.log
Normal file
282
logs/author-service.log
Normal file
@ -0,0 +1,282 @@
|
||||
2020-05-28 09:38:57,940 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:38:58,087 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:38:58,319 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:39:03,356 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:39:03,356 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:39:04,942 WARN (EndpointId.java:131)- Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:04,946 WARN (EndpointId.java:131)- Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:04,993 WARN (EndpointId.java:131)- Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:05,311 INFO (GenericScope.java:295)- BeanFactory id=dfba7f23-8036-3123-a21a-120d1a60e291
|
||||
2020-05-28 09:39:05,465 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d021fb0d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:39:05,495 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$ec3bfe0a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:39:05,845 INFO (TomcatWebServer.java:90)- Tomcat initialized with port(s): 660 (http)
|
||||
2020-05-28 09:39:05,878 INFO (DirectJDKLog.java:173)- Starting service [Tomcat]
|
||||
2020-05-28 09:39:05,878 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.24]
|
||||
2020-05-28 09:39:06,194 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext
|
||||
2020-05-28 09:39:06,195 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 2821 ms
|
||||
2020-05-28 09:39:06,557 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:39:06,558 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:39:06,589 INFO (DynamicPropertyFactory.java:281)- DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@4601047
|
||||
2020-05-28 09:39:07,278 INFO (NacosNamingService.java:198)- initializer namespace from System Property :null
|
||||
2020-05-28 09:39:07,280 INFO (NacosNamingService.java:208)- initializer namespace from System Environment :null
|
||||
2020-05-28 09:39:07,281 INFO (NacosNamingService.java:217)- initializer namespace from Credential Module null
|
||||
2020-05-28 09:39:07,442 WARN (AbstractApplicationContext.java:557)- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisServiceImpl': Resolution of declared constructors on bean Class [com.java2nb.novel.common.cache.impl.RedisServiceImpl] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2] failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/redis/core/StringRedisTemplate
|
||||
2020-05-28 09:39:07,446 INFO (DirectJDKLog.java:173)- Stopping service [Tomcat]
|
||||
2020-05-28 09:39:07,450 WARN (DirectJDKLog.java:173)- The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.client.listener] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
|
||||
sun.misc.Unsafe.park(Native Method)
|
||||
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
|
||||
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
|
||||
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
|
||||
com.alibaba.nacos.client.naming.core.EventDispatcher$Notifier.run(EventDispatcher.java:114)
|
||||
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
java.lang.Thread.run(Thread.java:748)
|
||||
2020-05-28 09:39:07,451 WARN (DirectJDKLog.java:173)- The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.beat.sender] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
|
||||
sun.misc.Unsafe.park(Native Method)
|
||||
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
|
||||
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
|
||||
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
|
||||
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
|
||||
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
java.lang.Thread.run(Thread.java:748)
|
||||
2020-05-28 09:39:07,452 WARN (DirectJDKLog.java:173)- The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.beat.sender] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
|
||||
sun.misc.Unsafe.park(Native Method)
|
||||
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
|
||||
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
|
||||
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
|
||||
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
|
||||
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
java.lang.Thread.run(Thread.java:748)
|
||||
2020-05-28 09:39:07,453 WARN (DirectJDKLog.java:173)- The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.failover] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
|
||||
sun.misc.Unsafe.park(Native Method)
|
||||
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
|
||||
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
|
||||
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
|
||||
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
|
||||
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
java.lang.Thread.run(Thread.java:748)
|
||||
2020-05-28 09:39:07,453 WARN (DirectJDKLog.java:173)- The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.push.receiver] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
|
||||
java.net.PlainDatagramSocketImpl.receive0(Native Method)
|
||||
java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143)
|
||||
java.net.DatagramSocket.receive(DatagramSocket.java:812)
|
||||
com.alibaba.nacos.client.naming.core.PushReceiver.run(PushReceiver.java:73)
|
||||
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
|
||||
java.util.concurrent.FutureTask.run(FutureTask.java)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
java.lang.Thread.run(Thread.java:748)
|
||||
2020-05-28 09:39:07,471 INFO (ConditionEvaluationReportLoggingListener.java:136)-
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2020-05-28 09:39:07,487 ERROR (SpringApplication.java:823)- Application run failed
|
||||
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisServiceImpl': Resolution of declared constructors on bean Class [com.java2nb.novel.common.cache.impl.RedisServiceImpl] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2] failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/redis/core/StringRedisTemplate
|
||||
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:284)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1269)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1184)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845)
|
||||
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
|
||||
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
|
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
|
||||
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
|
||||
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
|
||||
at com.java2nb.novel.AuthorApplication.main(AuthorApplication.java:18)
|
||||
Caused by: java.lang.NoClassDefFoundError: org/springframework/data/redis/core/StringRedisTemplate
|
||||
at java.lang.Class.getDeclaredConstructors0(Native Method)
|
||||
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
|
||||
at java.lang.Class.getDeclaredConstructors(Class.java:2020)
|
||||
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:279)
|
||||
... 18 common frames omitted
|
||||
Caused by: java.lang.ClassNotFoundException: org.springframework.data.redis.core.StringRedisTemplate
|
||||
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
|
||||
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
|
||||
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
|
||||
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
|
||||
... 22 common frames omitted
|
||||
2020-05-28 09:39:48,199 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:39:48,308 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:39:48,548 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:39:53,585 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:39:53,585 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:39:55,125 WARN (EndpointId.java:131)- Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:55,129 WARN (EndpointId.java:131)- Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:55,178 WARN (EndpointId.java:131)- Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:39:55,526 INFO (GenericScope.java:295)- BeanFactory id=8bf55de2-bf6c-30c7-81ed-e82b94b0e49f
|
||||
2020-05-28 09:39:55,696 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$32320777] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:39:55,729 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4e4c0a74] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:39:56,107 INFO (TomcatWebServer.java:90)- Tomcat initialized with port(s): 660 (http)
|
||||
2020-05-28 09:39:56,141 INFO (DirectJDKLog.java:173)- Starting service [Tomcat]
|
||||
2020-05-28 09:39:56,142 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.24]
|
||||
2020-05-28 09:39:56,874 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext
|
||||
2020-05-28 09:39:56,874 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 3269 ms
|
||||
2020-05-28 09:39:57,079 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:39:57,080 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:39:57,100 INFO (DynamicPropertyFactory.java:281)- DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@44aa91e2
|
||||
2020-05-28 09:39:57,786 INFO (NacosNamingService.java:198)- initializer namespace from System Property :null
|
||||
2020-05-28 09:39:57,788 INFO (NacosNamingService.java:208)- initializer namespace from System Environment :null
|
||||
2020-05-28 09:39:57,789 INFO (NacosNamingService.java:217)- initializer namespace from Credential Module null
|
||||
2020-05-28 09:39:59,164 INFO (EndpointLinksResolver.java:58)- Exposing 21 endpoint(s) beneath base path '/actuator'
|
||||
2020-05-28 09:39:59,279 INFO (PropertySourcedRequestMappingHandlerMapping.java:69)- 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)]
|
||||
2020-05-28 09:39:59,309 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:39:59,309 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:39:59,528 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2020-05-28 09:40:00,317 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService
|
||||
2020-05-28 09:40:01,001 INFO (DocumentationPluginsBootstrapper.java:147)- Context refreshed
|
||||
2020-05-28 09:40:01,024 INFO (DocumentationPluginsBootstrapper.java:150)- Found 1 custom documentation plugin(s)
|
||||
2020-05-28 09:40:01,100 INFO (ApiListingReferenceScanner.java:41)- Scanning for api listing references
|
||||
2020-05-28 09:40:01,242 INFO (TomcatWebServer.java:202)- Tomcat started on port(s): 660 (http) with context path ''
|
||||
2020-05-28 09:40:01,246 INFO (BeatReactor.java:62)- [BEAT] adding beat: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":false,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0} to beat map.
|
||||
2020-05-28 09:40:01,264 INFO (NamingProxy.java:170)- [REGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c registering service DEFAULT_GROUP@@author-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"weight":1.0}
|
||||
2020-05-28 09:40:01,402 INFO (NacosServiceRegistry.java:64)- nacos registry, author-service 172.20.10.2:660 register finished
|
||||
2020-05-28 09:40:01,413 INFO (StartupInfoLogger.java:59)- Started AuthorApplication in 30.205 seconds (JVM running for 37.785)
|
||||
2020-05-28 09:40:01,413 INFO (StartupInfoLogger.java:59)- Started AuthorApplication in 30.205 seconds (JVM running for 37.785)
|
||||
2020-05-28 09:40:01,450 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service-dev.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:40:01,451 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service-dev.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:40:01,458 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] novel-jwt.yml+novel-common+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:40:01,460 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=novel-jwt.yml, group=novel-common, cnt=1
|
||||
2020-05-28 09:40:01,461 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:40:01,461 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:40:01,462 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service-common.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:40:01,462 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service-common.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:40:01,917 INFO (DirectJDKLog.java:173)- Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2020-05-28 09:40:01,920 INFO (FrameworkServlet.java:524)- Initializing Servlet 'dispatcherServlet'
|
||||
2020-05-28 09:40:01,919 INFO (HikariDataSource.java:110)- HikariPool-1 - Starting...
|
||||
2020-05-28 09:40:01,954 INFO (FrameworkServlet.java:546)- Completed initialization in 33 ms
|
||||
2020-05-28 09:40:02,099 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4e4c0a74] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:40:02,805 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:02,893 INFO (HikariDataSource.java:123)- HikariPool-1 - Start completed.
|
||||
2020-05-28 09:40:02,967 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:40:03,088 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:40:03,336 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:40:08,370 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:40:08,500 INFO (StartupInfoLogger.java:59)- Started application in 6.828 seconds (JVM running for 44.871)
|
||||
2020-05-28 09:40:08,911 INFO (HikariDataSource.java:350)- HikariPool-1 - Shutdown initiated...
|
||||
2020-05-28 09:40:08,920 INFO (HikariDataSource.java:352)- HikariPool-1 - Shutdown completed.
|
||||
2020-05-28 09:40:08,922 INFO (RefreshEventListener.java:73)- Refresh keys changed: []
|
||||
2020-05-28 09:40:08,922 INFO (CacheData.java:190)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-ok] dataId=novel-jwt.yml, group=novel-common, md5=83296c38d1a0834d14bee40e8285e807, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@154daf0b
|
||||
2020-05-28 09:40:08,922 INFO (CacheData.java:216)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-listener] time cost=7256ms in ClientWorker, dataId=novel-jwt.yml, group=novel-common, md5=83296c38d1a0834d14bee40e8285e807, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@154daf0b
|
||||
2020-05-28 09:40:08,991 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4e4c0a74] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:40:09,174 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:40:09,333 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:40:09,611 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:40:14,633 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:40:14,659 INFO (StartupInfoLogger.java:59)- Started application in 5.735 seconds (JVM running for 51.03)
|
||||
2020-05-28 09:40:14,807 INFO (RefreshEventListener.java:73)- Refresh keys changed: []
|
||||
2020-05-28 09:40:14,807 INFO (CacheData.java:190)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-ok] dataId=author-service.yml, group=author-service, md5=8b16c48c6fc98edd7d8008a9962ca5eb, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@1be4878
|
||||
2020-05-28 09:40:14,807 INFO (CacheData.java:216)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-listener] time cost=5885ms in ClientWorker, dataId=author-service.yml, group=author-service, md5=8b16c48c6fc98edd7d8008a9962ca5eb, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@1be4878
|
||||
2020-05-28 09:40:17,818 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:22,822 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:27,826 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:32,829 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:36,562 INFO (HostReactor.java:163)- new ips(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:40:36,580 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:40:36,582 INFO (EventDispatcher.java:61)- [LISTENER] adding DEFAULT_GROUP@@author-service with to listener map
|
||||
2020-05-28 09:40:37,733 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:40:37,829 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:42,832 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:47,837 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:47,892 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:40:52,840 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:57,846 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:40:58,264 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:41:00,918 INFO (NacosServiceRegistry.java:76)- De-registering from Nacos Server now...
|
||||
2020-05-28 09:41:00,918 INFO (BeatReactor.java:68)- [BEAT] removing beat: DEFAULT_GROUP@@author-service:172.20.10.2:660 from beat map.
|
||||
2020-05-28 09:41:00,919 INFO (NamingProxy.java:192)- [DEREGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c deregistering service DEFAULT_GROUP@@author-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{},"port":660,"weight":1.0}
|
||||
2020-05-28 09:41:01,040 INFO (NacosServiceRegistry.java:95)- De-registration finished.
|
||||
2020-05-28 09:41:01,045 INFO (ExecutorConfigurationSupport.java:208)- Shutting down ExecutorService 'applicationTaskExecutor'
|
||||
2020-05-28 09:42:35,895 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:42:35,994 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:42:36,235 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:42:41,268 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:42:41,268 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:42:42,497 WARN (EndpointId.java:131)- Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:42:42,503 WARN (EndpointId.java:131)- Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:42:42,591 WARN (EndpointId.java:131)- Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:42:43,105 INFO (GenericScope.java:295)- BeanFactory id=8bf55de2-bf6c-30c7-81ed-e82b94b0e49f
|
||||
2020-05-28 09:42:43,261 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$39e5085a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:42:43,292 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$55ff0b57] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:42:43,664 INFO (TomcatWebServer.java:90)- Tomcat initialized with port(s): 660 (http)
|
||||
2020-05-28 09:42:43,695 INFO (DirectJDKLog.java:173)- Starting service [Tomcat]
|
||||
2020-05-28 09:42:43,695 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.24]
|
||||
2020-05-28 09:42:43,994 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext
|
||||
2020-05-28 09:42:43,995 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 2709 ms
|
||||
2020-05-28 09:42:44,148 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:42:44,149 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:42:44,162 INFO (DynamicPropertyFactory.java:281)- DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@65d9e72a
|
||||
2020-05-28 09:42:45,020 INFO (NacosNamingService.java:198)- initializer namespace from System Property :null
|
||||
2020-05-28 09:42:45,021 INFO (NacosNamingService.java:208)- initializer namespace from System Environment :null
|
||||
2020-05-28 09:42:45,022 INFO (NacosNamingService.java:217)- initializer namespace from Credential Module null
|
||||
2020-05-28 09:42:45,615 INFO (EndpointLinksResolver.java:58)- Exposing 21 endpoint(s) beneath base path '/actuator'
|
||||
2020-05-28 09:42:45,718 INFO (PropertySourcedRequestMappingHandlerMapping.java:69)- 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)]
|
||||
2020-05-28 09:42:45,749 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:42:45,750 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:42:45,930 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2020-05-28 09:42:46,840 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService
|
||||
2020-05-28 09:42:47,067 INFO (DocumentationPluginsBootstrapper.java:147)- Context refreshed
|
||||
2020-05-28 09:42:47,091 INFO (DocumentationPluginsBootstrapper.java:150)- Found 1 custom documentation plugin(s)
|
||||
2020-05-28 09:42:47,158 INFO (ApiListingReferenceScanner.java:41)- Scanning for api listing references
|
||||
2020-05-28 09:42:47,239 INFO (TomcatWebServer.java:202)- Tomcat started on port(s): 660 (http) with context path ''
|
||||
2020-05-28 09:42:47,245 INFO (BeatReactor.java:62)- [BEAT] adding beat: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":false,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0} to beat map.
|
||||
2020-05-28 09:42:47,319 INFO (NamingProxy.java:170)- [REGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c registering service DEFAULT_GROUP@@author-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"weight":1.0}
|
||||
2020-05-28 09:42:47,436 INFO (NacosServiceRegistry.java:64)- nacos registry, author-service 172.20.10.2:660 register finished
|
||||
2020-05-28 09:42:47,444 INFO (StartupInfoLogger.java:59)- Started AuthorApplication in 28.571 seconds (JVM running for 35.608)
|
||||
2020-05-28 09:42:47,444 INFO (StartupInfoLogger.java:59)- Started AuthorApplication in 28.571 seconds (JVM running for 35.608)
|
||||
2020-05-28 09:42:47,467 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service-dev.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:42:47,468 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service-dev.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:42:47,468 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] novel-jwt.yml+novel-common+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:42:47,469 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=novel-jwt.yml, group=novel-common, cnt=1
|
||||
2020-05-28 09:42:47,469 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:42:47,469 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:42:47,470 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] author-service-common.yml+author-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:42:47,470 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=author-service-common.yml, group=author-service, cnt=1
|
||||
2020-05-28 09:42:47,631 INFO (HikariDataSource.java:110)- HikariPool-1 - Starting...
|
||||
2020-05-28 09:42:47,640 INFO (DirectJDKLog.java:173)- Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2020-05-28 09:42:47,642 INFO (FrameworkServlet.java:524)- Initializing Servlet 'dispatcherServlet'
|
||||
2020-05-28 09:42:47,674 INFO (FrameworkServlet.java:546)- Completed initialization in 31 ms
|
||||
2020-05-28 09:42:47,861 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$55ff0b57] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:42:48,030 INFO (HikariDataSource.java:123)- HikariPool-1 - Start completed.
|
||||
2020-05-28 09:42:48,191 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:42:48,305 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:42:48,830 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:42:57,334 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:42:57,351 INFO (StartupInfoLogger.java:59)- Started application in 9.728 seconds (JVM running for 45.515)
|
||||
2020-05-28 09:42:57,635 INFO (HikariDataSource.java:350)- HikariPool-1 - Shutdown initiated...
|
||||
2020-05-28 09:42:57,650 INFO (HikariDataSource.java:352)- HikariPool-1 - Shutdown completed.
|
||||
2020-05-28 09:42:57,655 INFO (RefreshEventListener.java:73)- Refresh keys changed: []
|
||||
2020-05-28 09:42:57,656 INFO (CacheData.java:190)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-ok] dataId=novel-jwt.yml, group=novel-common, md5=83296c38d1a0834d14bee40e8285e807, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@5afee42d
|
||||
2020-05-28 09:42:57,656 INFO (CacheData.java:216)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-listener] time cost=10043ms in ClientWorker, dataId=novel-jwt.yml, group=novel-common, md5=83296c38d1a0834d14bee40e8285e807, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@5afee42d
|
||||
2020-05-28 09:42:57,787 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$55ff0b57] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:42:58,111 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'novel-jwt.yml', group: 'novel-common'
|
||||
2020-05-28 09:42:58,455 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'author-service.yml', group: 'author-service'
|
||||
2020-05-28 09:42:59,165 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='author-service-dev.yml'}, NacosPropertySource {name='author-service-common.yml'}, NacosPropertySource {name='author-service.yml'}, NacosPropertySource {name='novel-jwt.yml'}]}
|
||||
2020-05-28 09:43:04,188 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:43:04,211 INFO (StartupInfoLogger.java:59)- Started application in 6.549 seconds (JVM running for 52.375)
|
||||
2020-05-28 09:43:04,653 INFO (RefreshEventListener.java:73)- Refresh keys changed: []
|
||||
2020-05-28 09:43:04,654 INFO (CacheData.java:190)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-ok] dataId=author-service.yml, group=author-service, md5=8b16c48c6fc98edd7d8008a9962ca5eb, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@19abb9b1
|
||||
2020-05-28 09:43:04,656 INFO (CacheData.java:216)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-listener] time cost=6999ms in ClientWorker, dataId=author-service.yml, group=author-service, md5=8b16c48c6fc98edd7d8008a9962ca5eb, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@19abb9b1
|
||||
2020-05-28 09:43:05,040 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:43:10,042 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:43:13,994 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@author-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#660#DEFAULT#DEFAULT_GROUP@@author-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}]
|
||||
2020-05-28 09:43:15,044 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":660,"scheduled":true,"serviceName":"DEFAULT_GROUP@@author-service","weight":1.0}
|
||||
2020-05-28 09:43:15,360 INFO (NacosServiceRegistry.java:76)- De-registering from Nacos Server now...
|
||||
2020-05-28 09:43:15,360 INFO (BeatReactor.java:68)- [BEAT] removing beat: DEFAULT_GROUP@@author-service:172.20.10.2:660 from beat map.
|
||||
2020-05-28 09:43:15,361 INFO (NamingProxy.java:192)- [DEREGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c deregistering service DEFAULT_GROUP@@author-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{},"port":660,"weight":1.0}
|
||||
2020-05-28 09:43:15,482 INFO (NacosServiceRegistry.java:95)- De-registration finished.
|
||||
2020-05-28 09:43:15,489 INFO (ExecutorConfigurationSupport.java:208)- Shutting down ExecutorService 'applicationTaskExecutor'
|
1225
logs/book-service.log
Normal file
1225
logs/book-service.log
Normal file
File diff suppressed because it is too large
Load Diff
2046
logs/novel-search.log
Normal file
2046
logs/novel-search.log
Normal file
File diff suppressed because one or more lines are too long
177
logs/pay-service.log
Normal file
177
logs/pay-service.log
Normal file
@ -0,0 +1,177 @@
|
||||
2020-05-28 09:44:07,815 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'pay-service.yml', group: 'pay-service'
|
||||
2020-05-28 09:44:08,042 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='pay-service-dev.yml'}, NacosPropertySource {name='pay-service-common.yml'}, NacosPropertySource {name='pay-service.yml'}]}
|
||||
2020-05-28 09:44:13,077 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:44:13,077 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:44:14,809 WARN (EndpointId.java:131)- Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:44:14,813 WARN (EndpointId.java:131)- Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:44:14,865 WARN (EndpointId.java:131)- Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
|
||||
2020-05-28 09:44:15,229 INFO (GenericScope.java:295)- BeanFactory id=bf29abd5-cd37-3089-951c-c9ab3b65584c
|
||||
2020-05-28 09:44:15,412 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$2925879b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:44:15,456 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$453f8a98] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:44:15,864 INFO (TomcatWebServer.java:90)- Tomcat initialized with port(s): 650 (http)
|
||||
2020-05-28 09:44:15,903 INFO (DirectJDKLog.java:173)- Starting service [Tomcat]
|
||||
2020-05-28 09:44:15,903 INFO (DirectJDKLog.java:173)- Starting Servlet engine: [Apache Tomcat/9.0.24]
|
||||
2020-05-28 09:44:16,332 INFO (DirectJDKLog.java:173)- Initializing Spring embedded WebApplicationContext
|
||||
2020-05-28 09:44:16,335 INFO (ServletWebServerApplicationContext.java:284)- Root WebApplicationContext: initialization completed in 3238 ms
|
||||
2020-05-28 09:44:16,749 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:44:16,750 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:44:16,764 INFO (DynamicPropertyFactory.java:281)- DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@5b14f482
|
||||
2020-05-28 09:44:17,304 INFO (NacosNamingService.java:198)- initializer namespace from System Property :null
|
||||
2020-05-28 09:44:17,306 INFO (NacosNamingService.java:208)- initializer namespace from System Environment :null
|
||||
2020-05-28 09:44:17,307 INFO (NacosNamingService.java:217)- initializer namespace from Credential Module null
|
||||
2020-05-28 09:44:17,910 INFO (EndpointLinksResolver.java:58)- Exposing 21 endpoint(s) beneath base path '/actuator'
|
||||
2020-05-28 09:44:18,020 INFO (PropertySourcedRequestMappingHandlerMapping.java:69)- 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)]
|
||||
2020-05-28 09:44:18,043 WARN (URLConfigurationSource.java:121)- No URLs will be polled as dynamic configuration sources.
|
||||
2020-05-28 09:44:18,044 INFO (URLConfigurationSource.java:122)- To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
|
||||
2020-05-28 09:44:18,231 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2020-05-28 09:44:19,165 INFO (ExecutorConfigurationSupport.java:171)- Initializing ExecutorService
|
||||
2020-05-28 09:44:19,423 INFO (DocumentationPluginsBootstrapper.java:147)- Context refreshed
|
||||
2020-05-28 09:44:19,448 INFO (DocumentationPluginsBootstrapper.java:150)- Found 1 custom documentation plugin(s)
|
||||
2020-05-28 09:44:19,528 INFO (ApiListingReferenceScanner.java:41)- Scanning for api listing references
|
||||
2020-05-28 09:44:19,617 INFO (TomcatWebServer.java:202)- Tomcat started on port(s): 650 (http) with context path ''
|
||||
2020-05-28 09:44:19,623 INFO (BeatReactor.java:62)- [BEAT] adding beat: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":false,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0} to beat map.
|
||||
2020-05-28 09:44:19,672 INFO (NamingProxy.java:170)- [REGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c registering service DEFAULT_GROUP@@pay-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"weight":1.0}
|
||||
2020-05-28 09:44:19,800 INFO (NacosServiceRegistry.java:64)- nacos registry, pay-service 172.20.10.2:650 register finished
|
||||
2020-05-28 09:44:19,810 INFO (StartupInfoLogger.java:59)- Started PayApplication in 29.07 seconds (JVM running for 36.057)
|
||||
2020-05-28 09:44:19,810 INFO (StartupInfoLogger.java:59)- Started PayApplication in 29.07 seconds (JVM running for 36.057)
|
||||
2020-05-28 09:44:19,833 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] pay-service-common.yml+pay-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:44:19,834 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=pay-service-common.yml, group=pay-service, cnt=1
|
||||
2020-05-28 09:44:19,835 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] pay-service-dev.yml+pay-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:44:19,835 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=pay-service-dev.yml, group=pay-service, cnt=1
|
||||
2020-05-28 09:44:19,836 INFO (ClientWorker.java:184)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [subscribe] pay-service.yml+pay-service+3960c71a-62ac-4b8f-8c30-bba8e8143a0c
|
||||
2020-05-28 09:44:19,836 INFO (CacheData.java:78)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [add-listener] ok, tenant=3960c71a-62ac-4b8f-8c30-bba8e8143a0c, dataId=pay-service.yml, group=pay-service, cnt=1
|
||||
2020-05-28 09:44:20,078 INFO (HikariDataSource.java:110)- HikariPool-1 - Starting...
|
||||
2020-05-28 09:44:20,086 INFO (DirectJDKLog.java:173)- Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2020-05-28 09:44:20,086 INFO (FrameworkServlet.java:524)- Initializing Servlet 'dispatcherServlet'
|
||||
2020-05-28 09:44:20,157 INFO (FrameworkServlet.java:546)- Completed initialization in 70 ms
|
||||
2020-05-28 09:44:20,256 INFO (PostProcessorRegistrationDelegate.java:330)- Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$453f8a98] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-05-28 09:44:20,806 INFO (HikariDataSource.java:123)- HikariPool-1 - Start completed.
|
||||
2020-05-28 09:44:20,891 INFO (NacosPropertySourceBuilder.java:87)- Loading nacos data, dataId: 'pay-service.yml', group: 'pay-service'
|
||||
2020-05-28 09:44:21,122 INFO (PropertySourceBootstrapConfiguration.java:101)- Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='pay-service-dev.yml'}, NacosPropertySource {name='pay-service-common.yml'}, NacosPropertySource {name='pay-service.yml'}]}
|
||||
2020-05-28 09:44:29,691 INFO (SpringApplication.java:652)- The following profiles are active: common,dev
|
||||
2020-05-28 09:44:29,714 INFO (StartupInfoLogger.java:59)- Started application in 9.719 seconds (JVM running for 45.961)
|
||||
2020-05-28 09:44:29,856 INFO (HikariDataSource.java:350)- HikariPool-1 - Shutdown initiated...
|
||||
2020-05-28 09:44:29,864 INFO (HikariDataSource.java:352)- HikariPool-1 - Shutdown completed.
|
||||
2020-05-28 09:44:29,866 INFO (RefreshEventListener.java:73)- Refresh keys changed: []
|
||||
2020-05-28 09:44:29,867 INFO (CacheData.java:190)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-ok] dataId=pay-service.yml, group=pay-service, md5=542410732d9cfa6d3cc49814a9602803, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@750c0b12
|
||||
2020-05-28 09:44:29,867 INFO (CacheData.java:216)- [fixed-47.106.243.172_8848-3960c71a-62ac-4b8f-8c30-bba8e8143a0c] [notify-listener] time cost=9884ms in ClientWorker, dataId=pay-service.yml, group=pay-service, md5=542410732d9cfa6d3cc49814a9602803, listener=org.springframework.cloud.alibaba.nacos.refresh.NacosContextRefresher$1@750c0b12
|
||||
2020-05-28 09:44:32,327 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:44:36,237 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:44:37,327 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:44:42,329 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:44:46,491 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:44:47,333 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:44:52,336 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:44:55,190 INFO (HostReactor.java:163)- new ips(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:44:55,205 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:44:55,206 INFO (EventDispatcher.java:61)- [LISTENER] adding DEFAULT_GROUP@@pay-service with to listener map
|
||||
2020-05-28 09:44:56,397 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:44:56,601 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:44:57,341 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:02,342 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:06,526 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:06,721 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:07,344 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:12,348 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:16,684 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:16,838 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:17,351 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:22,355 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:26,839 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:26,948 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:27,360 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:32,364 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:37,017 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:37,049 WARN (HostReactor.java:110)- out of date data received, old-t: 1590630326958, new-t: 0
|
||||
2020-05-28 09:45:37,050 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:37,366 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:38,199 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:39,445 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:40,598 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:41,719 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:42,368 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:42,839 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:44,068 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:45,198 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:46,363 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:47,161 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:47,369 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:47,479 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:48,604 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:49,704 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:50,798 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:51,908 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:52,371 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:53,029 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:54,149 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:55,278 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:55,459 INFO (EventDispatcher.java:75)- [LISTENER] removing DEFAULT_GROUP@@author-service with from listener map
|
||||
2020-05-28 09:45:55,594 INFO (HostReactor.java:163)- new ips(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:45:55,596 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:45:55,597 INFO (EventDispatcher.java:61)- [LISTENER] adding DEFAULT_GROUP@@book-service with to listener map
|
||||
2020-05-28 09:45:56,440 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:56,740 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:45:57,320 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:45:57,375 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:45:57,580 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:45:59,061 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:00,200 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:01,347 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:02,380 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:02,468 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:03,618 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:04,758 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:05,907 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:06,948 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:46:07,007 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:07,384 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:07,429 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:46:08,240 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:09,522 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:10,683 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:11,798 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:12,388 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:12,917 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:14,148 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:15,348 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:16,442 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:17,108 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:46:17,391 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:17,518 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:46:17,537 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:18,677 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:19,797 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:20,916 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:22,037 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:22,395 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:23,157 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:24,390 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:25,508 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:26,643 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:27,237 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:46:27,400 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:27,642 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:46:27,756 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:28,867 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:29,959 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:31,107 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:32,257 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:32,403 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:33,397 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:34,683 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:35,907 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:37,076 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:37,348 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@book-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#620#DEFAULT#DEFAULT_GROUP@@book-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":620,"serviceName":"DEFAULT_GROUP@@book-service","weight":1.0}]
|
||||
2020-05-28 09:46:37,409 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:37,777 INFO (HostReactor.java:195)- current ips:(1) service: DEFAULT_GROUP@@pay-service -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceId":"172.20.10.2#650#DEFAULT#DEFAULT_GROUP@@pay-service","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}]
|
||||
2020-05-28 09:46:38,306 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:39,510 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:40,686 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:41,797 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:42,413 INFO (NamingProxy.java:222)- [BEAT] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c sending beat to server: {"cluster":"DEFAULT","ip":"172.20.10.2","metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":650,"scheduled":true,"serviceName":"DEFAULT_GROUP@@pay-service","weight":1.0}
|
||||
2020-05-28 09:46:42,801 INFO (NacosServiceRegistry.java:76)- De-registering from Nacos Server now...
|
||||
2020-05-28 09:46:42,802 INFO (BeatReactor.java:68)- [BEAT] removing beat: DEFAULT_GROUP@@pay-service:172.20.10.2:650 from beat map.
|
||||
2020-05-28 09:46:42,805 INFO (NamingProxy.java:192)- [DEREGISTER-SERVICE] 3960c71a-62ac-4b8f-8c30-bba8e8143a0c deregistering service DEFAULT_GROUP@@pay-service with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"ip":"172.20.10.2","metadata":{},"port":650,"weight":1.0}
|
||||
2020-05-28 09:46:42,917 INFO (HostReactor.java:195)- current ips:(0) service: DEFAULT_GROUP@@author-service -> []
|
||||
2020-05-28 09:46:42,936 INFO (NacosServiceRegistry.java:95)- De-registration finished.
|
||||
2020-05-28 09:46:42,942 INFO (ExecutorConfigurationSupport.java:208)- Shutting down ExecutorService 'applicationTaskExecutor'
|
@ -1,8 +1,11 @@
|
||||
package com.java2nb.novel;
|
||||
|
||||
import com.java2nb.novel.common.cache.CacheService;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.FilterType;
|
||||
|
||||
/**
|
||||
* 作家微服务启动器
|
||||
@ -11,6 +14,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
* @since 2020/5/27
|
||||
*/
|
||||
@SpringBootApplication
|
||||
//@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {CacheService.class})})
|
||||
@EnableFeignClients
|
||||
public class AuthorApplication {
|
||||
|
||||
|
@ -15,18 +15,9 @@
|
||||
<dependency>
|
||||
<groupId>com.java2nb.novel</groupId>
|
||||
<artifactId>novel-common</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-cache</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-redis</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
</project>
|
@ -0,0 +1,26 @@
|
||||
package com.java2nb.novel.book.api;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小说微服务API接口定义(内部)
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
public interface BookApi {
|
||||
|
||||
/**
|
||||
* 根据最小更新时间分页查询书籍列表
|
||||
* @param minDate 最小时间,包括该时间
|
||||
* @param limit 查询数量
|
||||
* @return 书籍列表
|
||||
* */
|
||||
@GetMapping("api/book/queryBookByMinUpdateTime")
|
||||
List<Book> queryBookByMinUpdateTime(@RequestParam("minDate") Date minDate,@RequestParam("limit") int limit);
|
||||
}
|
@ -42,7 +42,7 @@ public class Book {
|
||||
@Generated("org.mybatis.generator.api.MyBatisGenerator")
|
||||
private String bookDesc;
|
||||
|
||||
@ApiModelProperty(value = "评分,预留字段")
|
||||
@ApiModelProperty(value = "评分")
|
||||
@Generated("org.mybatis.generator.api.MyBatisGenerator")
|
||||
private Float score;
|
||||
|
||||
|
@ -1,8 +1,14 @@
|
||||
package com.java2nb.novel;
|
||||
|
||||
import com.java2nb.novel.common.cache.CacheService;
|
||||
import com.java2nb.novel.common.cache.impl.RedisServiceImpl;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.FilterType;
|
||||
|
||||
/**
|
||||
* 小说微服务启动器
|
||||
@ -10,7 +16,11 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
* @version 1.0
|
||||
* @since 2020/5/27
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@SpringBootApplication(exclude={
|
||||
RedisAutoConfiguration.class,
|
||||
RedisRepositoriesAutoConfiguration.class
|
||||
})
|
||||
//@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {CacheService.class})})
|
||||
@EnableFeignClients
|
||||
public class BookApplication {
|
||||
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.java2nb.novel.book.controller;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("book")
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
@Api(tags = "小说相关接口")
|
||||
public class BookController {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.java2nb.novel.book.controller.api;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.book.service.BookService;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小说微服务API接口(内部调用)
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(("api/book"))
|
||||
@ApiIgnore
|
||||
@RequiredArgsConstructor
|
||||
public class BookApi {
|
||||
|
||||
private final BookService bookService;
|
||||
|
||||
/**
|
||||
* 根据最小更新时间分页查询书籍列表
|
||||
* @param minDate 最小时间,包括该时间
|
||||
* @param limit 查询数量
|
||||
* @return 书籍列表
|
||||
* */
|
||||
@GetMapping("queryBookByMinUpdateTime")
|
||||
List<Book> queryBookByMinUpdateTime(Date minDate, int limit){
|
||||
|
||||
return bookService.queryBookByMinUpdateTime(minDate,limit);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.java2nb.novel.book.service;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小说服务接口
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
public interface BookService {
|
||||
|
||||
/**
|
||||
* 根据最小更新时间分页查询书籍列表
|
||||
* @param minDate 最小时间,包括该时间
|
||||
* @param limit 查询数量
|
||||
* @return 书籍列表
|
||||
* */
|
||||
List<Book> queryBookByMinUpdateTime(Date minDate, int limit);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.java2nb.novel.book.service.impl;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.book.mapper.BookDynamicSqlSupport;
|
||||
import com.java2nb.novel.book.mapper.BookMapper;
|
||||
import com.java2nb.novel.book.service.BookService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.mybatis.dynamic.sql.render.RenderingStrategies;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static com.java2nb.novel.book.mapper.BookDynamicSqlSupport.book;
|
||||
import static org.mybatis.dynamic.sql.SqlBuilder.isGreaterThan;
|
||||
import static org.mybatis.dynamic.sql.select.SelectDSL.select;
|
||||
|
||||
/**
|
||||
* 小说服务接口实现
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class BookServiceImpl implements BookService {
|
||||
|
||||
private final BookMapper bookMapper;
|
||||
|
||||
@Override
|
||||
public List<Book> queryBookByMinUpdateTime(Date minDate, int limit) {
|
||||
return bookMapper.selectMany(select(book.allColumns())
|
||||
.from(book)
|
||||
.where(BookDynamicSqlSupport.updateTime, isGreaterThan(minDate))
|
||||
.orderBy(BookDynamicSqlSupport.updateTime)
|
||||
.limit(limit)
|
||||
.build()
|
||||
.render(RenderingStrategies.MYBATIS3));
|
||||
}
|
||||
}
|
@ -116,4 +116,6 @@
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
|
||||
</project>
|
@ -12,7 +12,7 @@ import java.util.concurrent.TimeUnit;
|
||||
/**
|
||||
* @author xxy
|
||||
*/
|
||||
@ConditionalOnProperty(prefix = "cache", name = "type", havingValue = "redis")
|
||||
@ConditionalOnProperty(prefix = "spring.redis", name = "host", matchIfMissing = false)
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class RedisServiceImpl implements CacheService {
|
||||
|
@ -58,13 +58,16 @@ public enum ResponseStatus {
|
||||
, BOOKNAME_EXISTS(4003,"已发布过同名小说!")
|
||||
|
||||
,
|
||||
/**
|
||||
* 搜索引擎相关错误
|
||||
* */
|
||||
ES_SEARCH_FAIL(9001,"密码错误!"),
|
||||
|
||||
|
||||
/**
|
||||
* 其他通用错误
|
||||
* */
|
||||
PASSWORD_ERROR(88001,"密码错误!");
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
|
||||
|
@ -8,6 +8,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
@ -18,6 +19,7 @@ import java.util.Map;
|
||||
* @author 11797
|
||||
*/
|
||||
@Component
|
||||
@ConditionalOnProperty(prefix = "jwt", name = "secret")
|
||||
@Slf4j
|
||||
public class JwtTokenUtil {
|
||||
|
||||
|
@ -14,9 +14,7 @@ mybatis:
|
||||
logging:
|
||||
config: classpath:logback-boot.xml
|
||||
|
||||
jwt:
|
||||
secret: novel!1025
|
||||
expiration: 604800
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,7 @@
|
||||
package com.java2nb.novel.home;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class HomeController {
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.java2nb.novel</groupId>
|
||||
<artifactId>novel-common</artifactId>
|
||||
<artifactId>book-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -49,5 +49,15 @@
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
|
||||
</project>
|
@ -3,6 +3,7 @@ package com.java2nb.novel;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* 搜索微服务启动器
|
||||
@ -12,6 +13,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableFeignClients
|
||||
@EnableScheduling
|
||||
public class SearchApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -0,0 +1,41 @@
|
||||
package com.java2nb.novel.search.controller;
|
||||
|
||||
import com.java2nb.novel.common.bean.PageBean;
|
||||
import com.java2nb.novel.common.bean.ResultBean;
|
||||
import com.java2nb.novel.search.service.SearchService;
|
||||
import com.java2nb.novel.search.vo.EsBookVO;
|
||||
import com.java2nb.novel.search.vo.SearchParamVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("user")
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
@Api(tags = "搜索相关接口")
|
||||
|
||||
public class SearchController {
|
||||
|
||||
private final SearchService searchService;
|
||||
|
||||
/**
|
||||
* 分页搜索小说列表接口
|
||||
* */
|
||||
@ApiOperation("分页搜索小说列表接口")
|
||||
@GetMapping("searchByPage")
|
||||
public ResultBean<PageBean<EsBookVO>> searchByPage(SearchParamVO paramVO, @ApiParam("查询页码") @RequestParam(value = "curr", defaultValue = "1") int page,@ApiParam("每页大小") @RequestParam(value = "limit", defaultValue = "20") int pageSize){
|
||||
PageBean<EsBookVO> pageBean = searchService.searchBook(paramVO,page,pageSize);
|
||||
return ResultBean.ok(pageBean);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.java2nb.novel.search.feign;
|
||||
|
||||
|
||||
import com.java2nb.novel.book.api.BookApi;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
|
||||
/**
|
||||
* 小说服务Feign客户端
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@FeignClient(value = "book-service")
|
||||
public interface BookFeignClient extends BookApi {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.java2nb.novel.search.schedule;
|
||||
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.common.cache.CacheKey;
|
||||
import com.java2nb.novel.common.cache.CacheService;
|
||||
import com.java2nb.novel.search.feign.BookFeignClient;
|
||||
import com.java2nb.novel.search.service.SearchService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小说导入搜索引擎
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class BookToEsSchedule {
|
||||
|
||||
private final BookFeignClient bookFeignClient;
|
||||
|
||||
private final CacheService cacheService;
|
||||
|
||||
|
||||
|
||||
private final SearchService searchService;
|
||||
|
||||
|
||||
/**
|
||||
* 1分钟导入一次
|
||||
*/
|
||||
@Scheduled(fixedRate = 1000 * 60)
|
||||
public void saveToEs() {
|
||||
//TODO 引入Redisson框架实现分布式锁
|
||||
//可以重复更新,只是效率可能略有降低,所以暂不实现分布式锁
|
||||
if (cacheService.get(CacheKey.ES_TRANS_LOCK) == null) {
|
||||
cacheService.set(CacheKey.ES_TRANS_LOCK, "1", 60 * 20);
|
||||
try {
|
||||
//查询需要更新的小说
|
||||
Date lastDate = (Date) cacheService.getObject(CacheKey.ES_LAST_UPDATE_TIME);
|
||||
if (lastDate == null) {
|
||||
lastDate = new SimpleDateFormat("yyyy-MM-dd").parse("2020-01-01");
|
||||
}
|
||||
|
||||
|
||||
List<Book> books = bookFeignClient.queryBookByMinUpdateTime(lastDate, 100);
|
||||
for (Book book : books) {
|
||||
searchService.importToEs(book);
|
||||
lastDate = book.getUpdateTime();
|
||||
Thread.sleep(5000);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
cacheService.setObject(CacheKey.ES_LAST_UPDATE_TIME, lastDate);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
cacheService.del(CacheKey.ES_TRANS_LOCK);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.java2nb.novel.search.service;
|
||||
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.common.bean.PageBean;
|
||||
import com.java2nb.novel.search.vo.EsBookVO;
|
||||
import com.java2nb.novel.search.vo.SearchParamVO;
|
||||
|
||||
|
||||
/**
|
||||
* 搜索服务接口
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
public interface SearchService {
|
||||
|
||||
/**
|
||||
* 导入到es
|
||||
* @param book 小说数据
|
||||
*/
|
||||
void importToEs(Book book);
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
* @param params 搜索参数
|
||||
* @param page 当前页码
|
||||
* @param pageSize 每页大小
|
||||
* @return 分页信息
|
||||
*/
|
||||
PageBean<EsBookVO> searchBook(SearchParamVO params, int page, int pageSize);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,212 @@
|
||||
package com.java2nb.novel.search.service.impl;
|
||||
|
||||
import com.fasterxml.jackson.databind.JavaType;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.java2nb.novel.book.entity.Book;
|
||||
import com.java2nb.novel.common.bean.PageBean;
|
||||
import com.java2nb.novel.common.enums.ResponseStatus;
|
||||
import com.java2nb.novel.common.exception.BusinessException;
|
||||
import com.java2nb.novel.common.utils.StringUtil;
|
||||
import com.java2nb.novel.search.service.SearchService;
|
||||
import com.java2nb.novel.search.vo.EsBookVO;
|
||||
import com.java2nb.novel.search.vo.SearchParamVO;
|
||||
import io.searchbox.client.JestClient;
|
||||
import io.searchbox.core.*;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
|
||||
import org.elasticsearch.search.sort.SortOrder;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 搜索服务接口实现类
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class SearchServiceImpl implements SearchService {
|
||||
|
||||
private final String INDEX = "novel";
|
||||
|
||||
private final String TYPE = "book";
|
||||
|
||||
private final JestClient jestClient;
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
@Override
|
||||
public void importToEs(Book book) {
|
||||
|
||||
//导入到ES
|
||||
EsBookVO esBookVO = new EsBookVO();
|
||||
BeanUtils.copyProperties(book, esBookVO, "lastIndexUpdateTime");
|
||||
esBookVO.setLastIndexUpdateTime(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(book.getLastIndexUpdateTime()));
|
||||
Index action = new Index.Builder(esBookVO).index(INDEX).type(TYPE).id(book.getId().toString()).build();
|
||||
|
||||
jestClient.execute(action);
|
||||
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
@Override
|
||||
public PageBean<EsBookVO> searchBook(SearchParamVO params, int page, int pageSize) {
|
||||
|
||||
if (params.getUpdatePeriod() != null) {
|
||||
long cur = System.currentTimeMillis();
|
||||
long period = params.getUpdatePeriod() * 24 * 3600 * 1000;
|
||||
long time = cur - period;
|
||||
params.setUpdateTimeMin(new Date(time));
|
||||
}
|
||||
|
||||
List<EsBookVO> bookList = new ArrayList<>(0);
|
||||
|
||||
//使用搜索引擎搜索
|
||||
BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
|
||||
// 构造查询哪个字段
|
||||
if (StringUtils.isNoneBlank(params.getKeyword())) {
|
||||
boolQueryBuilder = boolQueryBuilder.must(QueryBuilders.queryStringQuery(params.getKeyword()));
|
||||
}
|
||||
|
||||
// 作品方向
|
||||
if (params.getWorkDirection() != null) {
|
||||
boolQueryBuilder.filter(QueryBuilders.termQuery("workDirection", params.getWorkDirection()));
|
||||
}
|
||||
|
||||
// 分类
|
||||
if (params.getCatId() != null) {
|
||||
boolQueryBuilder.filter(QueryBuilders.termQuery("catId", params.getCatId()));
|
||||
}
|
||||
if (params.getBookStatus() != null) {
|
||||
boolQueryBuilder.filter(QueryBuilders.termQuery("bookStatus", params.getBookStatus()));
|
||||
}
|
||||
|
||||
if (params.getWordCountMin() == null) {
|
||||
params.setWordCountMin(0);
|
||||
}
|
||||
if (params.getWordCountMax() == null) {
|
||||
params.setWordCountMax(Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
boolQueryBuilder.filter(QueryBuilders.rangeQuery("wordCount").gte(params.getWordCountMin()).lte(params.getWordCountMax()));
|
||||
|
||||
if (params.getUpdateTimeMin() != null) {
|
||||
boolQueryBuilder.filter(QueryBuilders.rangeQuery("lastIndexUpdateTime").gte(params.getUpdateTimeMin()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
|
||||
searchSourceBuilder.query(boolQueryBuilder);
|
||||
|
||||
|
||||
Count count = new Count.Builder().addIndex(INDEX).addType(TYPE)
|
||||
.query(searchSourceBuilder.toString()).build();
|
||||
CountResult results = jestClient.execute(count);
|
||||
Double total = results.getCount();
|
||||
|
||||
|
||||
// 高亮字段
|
||||
HighlightBuilder highlightBuilder = new HighlightBuilder();
|
||||
highlightBuilder.field("authorName");
|
||||
highlightBuilder.field("bookName");
|
||||
highlightBuilder.field("bookDesc");
|
||||
highlightBuilder.field("lastIndexName");
|
||||
highlightBuilder.field("catName");
|
||||
highlightBuilder.preTags("<span style='color:red'>").postTags("</span>");
|
||||
highlightBuilder.fragmentSize(20000);
|
||||
searchSourceBuilder.highlighter(highlightBuilder);
|
||||
|
||||
|
||||
//设置排序
|
||||
if (params.getSort() != null) {
|
||||
searchSourceBuilder.sort(StringUtil.camelName(params.getSort()), SortOrder.DESC);
|
||||
}
|
||||
|
||||
// 设置分页
|
||||
searchSourceBuilder.from((page - 1) * pageSize);
|
||||
searchSourceBuilder.size(pageSize);
|
||||
|
||||
// 构建Search对象
|
||||
Search search = new Search.Builder(searchSourceBuilder.toString()).addIndex(INDEX).addType(TYPE).build();
|
||||
log.debug(search.toString());
|
||||
SearchResult result;
|
||||
result = jestClient.execute(search);
|
||||
if (result.isSucceeded()) {
|
||||
log.debug(result.getJsonString());
|
||||
|
||||
Map resultMap = new ObjectMapper().readValue(result.getJsonString(), Map.class);
|
||||
if (resultMap.get("hits") != null) {
|
||||
Map hitsMap = (Map) resultMap.get("hits");
|
||||
if (hitsMap.size() > 0 && hitsMap.get("hits") != null) {
|
||||
List hitsList = (List) hitsMap.get("hits");
|
||||
if (hitsList.size() > 0 && result.getSourceAsString() != null) {
|
||||
|
||||
JavaType jt = new ObjectMapper().getTypeFactory().constructParametricType(ArrayList.class, EsBookVO.class);
|
||||
bookList = new ObjectMapper().readValue("[" + result.getSourceAsString() + "]", jt);
|
||||
|
||||
if (bookList != null) {
|
||||
for (int i = 0; i < bookList.size(); i++) {
|
||||
hitsMap = (Map) hitsList.get(i);
|
||||
Map highlightMap = (Map) hitsMap.get("highlight");
|
||||
if (highlightMap != null && highlightMap.size() > 0) {
|
||||
|
||||
List<String> authorNameList = (List<String>) highlightMap.get("authorName");
|
||||
if (authorNameList != null && authorNameList.size() > 0) {
|
||||
bookList.get(i).setAuthorName(authorNameList.get(0));
|
||||
}
|
||||
|
||||
List<String> bookNameList = (List<String>) highlightMap.get("bookName");
|
||||
if (bookNameList != null && bookNameList.size() > 0) {
|
||||
bookList.get(i).setBookName(bookNameList.get(0));
|
||||
}
|
||||
|
||||
List<String> bookDescList = (List<String>) highlightMap.get("bookDesc");
|
||||
if (bookDescList != null && bookDescList.size() > 0) {
|
||||
bookList.get(i).setBookDesc(bookDescList.get(0));
|
||||
}
|
||||
|
||||
List<String> lastIndexNameList = (List<String>) highlightMap.get("lastIndexName");
|
||||
if (lastIndexNameList != null && lastIndexNameList.size() > 0) {
|
||||
bookList.get(i).setLastIndexName(lastIndexNameList.get(0));
|
||||
}
|
||||
|
||||
List<String> catNameList = (List<String>) highlightMap.get("catName");
|
||||
if (catNameList != null && catNameList.size() > 0) {
|
||||
bookList.get(i).setCatName(catNameList.get(0));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PageBean<EsBookVO> pageBean = new PageBean<>(bookList);
|
||||
pageBean.setTotal(total.longValue());
|
||||
pageBean.setPageNum(page);
|
||||
pageBean.setPageSize(pageSize);
|
||||
return pageBean;
|
||||
}
|
||||
throw new BusinessException(ResponseStatus.ES_SEARCH_FAIL);
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.java2nb.novel.search.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class EsBookVO {
|
||||
|
||||
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "作品方向,0:男频,1:女频'")
|
||||
private Byte workDirection;
|
||||
|
||||
@ApiModelProperty(value = "分类ID")
|
||||
private Integer catId;
|
||||
|
||||
@ApiModelProperty(value = "分类名")
|
||||
private String catName;
|
||||
|
||||
@ApiModelProperty(value = "小说封面")
|
||||
private String picUrl;
|
||||
|
||||
@ApiModelProperty(value = "小说名")
|
||||
private String bookName;
|
||||
|
||||
@ApiModelProperty(value = "作者id")
|
||||
private Long authorId;
|
||||
|
||||
@ApiModelProperty(value = "作者名")
|
||||
private String authorName;
|
||||
|
||||
@ApiModelProperty(value = "书籍描述")
|
||||
private String bookDesc;
|
||||
|
||||
@ApiModelProperty(value = "评分")
|
||||
private Float score;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "书籍状态,0:连载中,1:已完结")
|
||||
private Byte bookStatus;
|
||||
|
||||
@ApiModelProperty(value = "点击量")
|
||||
private Long visitCount;
|
||||
|
||||
@ApiModelProperty(value = "总字数")
|
||||
private Integer wordCount;
|
||||
|
||||
@ApiModelProperty(value = "评论数")
|
||||
private Integer commentCount;
|
||||
|
||||
@ApiModelProperty(value = "最新目录ID")
|
||||
private Long lastIndexId;
|
||||
|
||||
@ApiModelProperty(value = "最新目录名")
|
||||
private String lastIndexName;
|
||||
|
||||
@ApiModelProperty(value = "最新目录更新时间")
|
||||
private String lastIndexUpdateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否收费,1:收费,0:免费")
|
||||
private Byte isVip;
|
||||
|
||||
@ApiModelProperty(value = "状态,0:入库,1:上架")
|
||||
private Byte status;
|
||||
|
||||
|
||||
|
||||
|
||||
private Integer crawlSourceId;
|
||||
|
||||
|
||||
private String crawlBookId;
|
||||
|
||||
|
||||
|
||||
private Byte crawlIsStop;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.java2nb.novel.search.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 封装页面搜索参数
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@Data
|
||||
public class SearchParamVO {
|
||||
|
||||
@ApiModelProperty("搜索关键字")
|
||||
private String keyword;
|
||||
|
||||
@ApiModelProperty("作品方向")
|
||||
private Byte workDirection;
|
||||
|
||||
@ApiModelProperty("分类ID")
|
||||
private Integer catId;
|
||||
|
||||
@ApiModelProperty("是否收费,1:收费,0:免费")
|
||||
private Byte isVip;
|
||||
|
||||
@ApiModelProperty("小说更新状态,0:连载中,1:已完结")
|
||||
private Byte bookStatus;
|
||||
|
||||
@ApiModelProperty("字数最小值")
|
||||
private Integer wordCountMin;
|
||||
|
||||
@ApiModelProperty("字数最大值")
|
||||
private Integer wordCountMax;
|
||||
|
||||
@ApiModelProperty(hidden = true)
|
||||
private Date updateTimeMin;
|
||||
|
||||
@ApiModelProperty("更新时间(单位:天)")
|
||||
private Long updatePeriod;
|
||||
|
||||
@ApiModelProperty("排序字段")
|
||||
private String sort;
|
||||
|
||||
|
||||
|
||||
}
|
@ -26,7 +26,6 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("user")
|
||||
@RequiredArgsConstructor
|
||||
@EnableSwagger2
|
||||
@Slf4j
|
||||
@Api(tags = "用户相关接口")
|
||||
public class UserController extends BaseController {
|
||||
|
@ -5,6 +5,7 @@ import com.java2nb.novel.user.entity.User;
|
||||
import com.java2nb.novel.user.service.UserService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
@ -15,6 +16,7 @@ import springfox.documentation.annotations.ApiIgnore;
|
||||
* @since 2020/5/27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("api/user")
|
||||
@RequiredArgsConstructor
|
||||
@ApiIgnore
|
||||
public class UserApi {
|
||||
@ -25,7 +27,7 @@ public class UserApi {
|
||||
/**
|
||||
* 根据用户名密码查询记录
|
||||
* */
|
||||
@GetMapping("api/queryByUsernameAndPassword")
|
||||
@GetMapping("queryByUsernameAndPassword")
|
||||
public User queryByUsernameAndPassword(String username, String password){
|
||||
return userService.queryByUsernameAndPassword(username,password);
|
||||
|
||||
|
@ -6,7 +6,10 @@ import com.java2nb.novel.user.entity.User;
|
||||
import com.java2nb.novel.user.form.UserForm;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
* 用户服务接口
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
public interface UserService {
|
||||
|
||||
|
@ -21,7 +21,10 @@ import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo;
|
||||
import static org.mybatis.dynamic.sql.select.SelectDSL.select;
|
||||
|
||||
/**
|
||||
* @author 11797
|
||||
* 小说服务接口实现
|
||||
* @author xiongxiaoyang
|
||||
* @version 1.0
|
||||
* @since 2020/5/28
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
|
Loading…
x
Reference in New Issue
Block a user