parent
90fd52d530
commit
0e5c1cd691
@ -0,0 +1,8 @@
|
||||
package com.tamguo.dao;
|
||||
|
||||
import com.tamguo.config.dao.SuperMapper;
|
||||
import com.tamguo.model.CrawlerChapterEntity;
|
||||
|
||||
public interface CrawlerChapterMapper extends SuperMapper<CrawlerChapterEntity>{
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.tamguo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotations.TableName;
|
||||
import com.tamguo.config.dao.SuperEntity;
|
||||
|
||||
@TableName(value="crawler_chapter")
|
||||
public class CrawlerChapterEntity extends SuperEntity<CrawlerChapterEntity>{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String chapterUid;
|
||||
|
||||
private String courseUid;
|
||||
|
||||
private String chapterUrl;
|
||||
|
||||
private String subjectUid;
|
||||
|
||||
public String getChapterUid() {
|
||||
return chapterUid;
|
||||
}
|
||||
|
||||
public void setChapterUid(String chapterUid) {
|
||||
this.chapterUid = chapterUid;
|
||||
}
|
||||
|
||||
public String getCourseUid() {
|
||||
return courseUid;
|
||||
}
|
||||
|
||||
public void setCourseUid(String courseUid) {
|
||||
this.courseUid = courseUid;
|
||||
}
|
||||
|
||||
public String getChapterUrl() {
|
||||
return chapterUrl;
|
||||
}
|
||||
|
||||
public void setChapterUrl(String chapterUrl) {
|
||||
this.chapterUrl = chapterUrl;
|
||||
}
|
||||
|
||||
public String getSubjectUid() {
|
||||
return subjectUid;
|
||||
}
|
||||
|
||||
public void setSubjectUid(String subjectUid) {
|
||||
this.subjectUid = subjectUid;
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.tamguo.dao.CrawlerChapterMapper">
|
||||
|
||||
</mapper>
|
@ -0,0 +1,23 @@
|
||||
package com.tamguo;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.tamguo.service.IChapterService;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class ChapterCrawler {
|
||||
|
||||
@Autowired
|
||||
IChapterService iChapterService;
|
||||
|
||||
@Test
|
||||
public void crawlerChapter() throws Exception {
|
||||
iChapterService.crawlerChapter();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue