Commit 7a67da25 by chentian

甘肃solr端口修改,每个整点更新一次

parent 0999d4c4
...@@ -33,7 +33,7 @@ public class TaskController { ...@@ -33,7 +33,7 @@ public class TaskController {
//每隔5分执行一次:0 */5 * * * ? //每隔5分执行一次:0 */5 * * * ?
//每个整点执行一次:0 0 0/1 * * ? //每个整点执行一次:0 0 0/1 * * ?
//每天凌晨2点执行一次:0 0 2 * * ? //每天凌晨2点执行一次:0 0 2 * * ?
@Scheduled(cron = "0 */15 * * * ?") @Scheduled(cron = "0 0 0/1 * * ?")
public String sourcesolrdatatask() throws Exception { public String sourcesolrdatatask() throws Exception {
System.out.println("==========================开始===================="); System.out.println("==========================开始====================");
long starttime = System.currentTimeMillis(); long starttime = System.currentTimeMillis();
......
spring: spring:
data: data:
solr: solr:
host: http://95.1.122.29:9041/solr host: http://95.1.122.29:9044/solr
\ No newline at end of file \ No newline at end of file
#˰ɸ #˰ɸ
sourcesolrdata=http://95.1.122.29:9041/solr/ sourcesolrdata=http://95.1.122.29:9044/solr/
sourcesolrdatahome=GNLKZSXX,MHLKDPXX,MHLKLGXX,TLDPXX,WBSWRY sourcesolrdatahome=GNLKZSXX,MHLKDPXX,MHLKLGXX,TLDPXX,WBSWRY
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment