该项目由springboot搭建,提供漫画更新、查找等功能。可与kb磁力前端的漫画爬虫页搭配使用
spring、springmvc、mybatis、springboot
- 该项目存放的漫画都在本人PC上,通过配置,让漫画地址映射到本机文件夹特定目录。由此,可直接通过http访问本机漫画。
- 以下是映射的实现代码:
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Value("${cbs.imagesPath}")
private String imagesPath;
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
System.out.println("图片文件路径:"+imagesPath);
registry.addResourceHandler("/comics/**").addResourceLocations(imagesPath);
}
}
cbs:
imagesPath: file:D:\copymanga\
以下为该项目所有api接口(不含请求参数)
GET /api/comic/all
GET /api/comic/id?id=
GET /api/comic/keyword?keyword=
GET /api/chapter/{comicId}
GET /api/pic/{chapterId}
GET /message/comic?id=
POST /update/validate