Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guanjie committed Apr 8, 2017
1 parent 6a88b5c commit a9d8e2a
Show file tree
Hide file tree
Showing 6 changed files with 948 additions and 84,364 deletions.
85,275 changes: 919 additions & 84,356 deletions log.log

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/main/java/com/esy/stack/dao/impl/ArticleMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.esy.stack.entity.Article;
import com.esy.stack.entity.Article;

import java.util.List;

public interface ArticleMapper extends BaseDao<Article> {
int deleteByPrimaryKey(Long id);

Expand All @@ -22,4 +24,7 @@ public interface ArticleMapper extends BaseDao<Article> {
int countWaitArticle(Article article);

Article selectLastOne();


List<Article> listArticles();
}
2 changes: 1 addition & 1 deletion src/main/java/com/esy/stack/task/DownArticleTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class DownArticleTask implements Downloadable {
@Autowired
private DownArticleHtmlService downArticleHtmlService;

@Scheduled(cron = "0 0 0/1 * * ?")
@Scheduled(cron = "0 0/30 * * * ?")
@Override
public void download() {
int count = downArticleHtmlService.countWaitArticles();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/prop/jdbc_prod.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/stack?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
#jdbc.url=jdbc:mysql://120.27.214.78:3306/stack?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
jdbc.user=root
jdbc.password=admin123
15 changes: 15 additions & 0 deletions src/test/java/com/esy/stack/AllSpringTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.esy.stack;

import org.junit.Test;
import org.springframework.core.env.StandardEnvironment;

/**
* Created by guanjie on 2017/4/3.
*/
public class AllSpringTest {
@Test
public void test001() {
StandardEnvironment environment = new StandardEnvironment();
environment.validateRequiredProperties();
}
}
14 changes: 7 additions & 7 deletions src/test/java/com/esy/stack/download/impl/QQAnalysisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
@Log4j
@ActiveProfiles("dev")
@ActiveProfiles("prod")
public class QQAnalysisTest {

@Autowired
Expand Down Expand Up @@ -56,13 +56,13 @@ public void after() throws Exception {
*/
@Test
public void testGetWebSiteId() throws Exception {
qqAnalysis.analys();
chinatimesProcess.analys();
thsAnalysis.analys();
sinaAnalysis.analys();
// qqAnalysis.analys();
// chinatimesProcess.analys();
// thsAnalysis.analys();
// sinaAnalysis.analys();
jrttAnalysis.analys();
paperAnalysis.analys();
w163Analysis.analys();
// paperAnalysis.analys();
// w163Analysis.analys();
;
TimeUnit.SECONDS.sleep(20);
}
Expand Down

0 comments on commit a9d8e2a

Please sign in to comment.