Commit a402132e by chenweitao

md测试 以及新增注释

parent c678dd80
......@@ -18,28 +18,30 @@
采集地址:https://d.weibo.com/1087030002_417#
> 使用quartz定时器,所以主方法中仅初始化spring容器
package com.zhiweidata.weiboDomain.start;
```python
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
System.out.println("微博热门榜单采集开始...");
//程序主体切换至com.zhiweidata.weiboDomain.quartz定时器
}
```
> 定时器程序入口在 com.zhiweidata.weiboDomain.quartz
```python
@Scheduled(cron = "0 0 20 * * *")
public void execute() {
String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd
HH"));
long start = System.currentTimeMillis();
String cookie = "";
serice.crawlerData(cookie);
long end = System.currentTimeMillis();
log.info(time + "次运行耗时:" + (end - start) + "\t毫秒");
}
```
\ No newline at end of file
package com.zhiweidata.weiboDomain.start;
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
System.out.println("微博热门榜单采集开始...");
//程序主体切换至com.zhiweidata.weiboDomain.quartz定时器
}
> 定时器程序入口在 com.zhiweidata.weiboDomain.quartz
@Scheduled(cron = "0 0 20 * * *")
public void execute() {
String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd
HH"));
long start = System.currentTimeMillis();
String cookie = "";
serice.crawlerData(cookie);
long end = System.currentTimeMillis();
log.info(time + "次运行耗时:" + (end - start) + "\t毫秒");
}
......@@ -16,7 +16,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
/**
* @ClassName: DomainTag
* @Description: TODO(这里用一句话描述这个类的作用)
* @Description: TODO(标签页,领域分类)
* @author xuyimeng
* @date 2018年2月23日 下午3:23:31
*/
......
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