简化安装过程,本地或远超IP可直接访问

This commit is contained in:
xxy 2019-10-18 16:35:10 +08:00
parent 8f2c243940
commit 809934ef97
13 changed files with 40 additions and 25 deletions

View File

@ -1,40 +1,57 @@
# 小说精品屋
#### 介绍
该项目包括了一个小说网站代理和一个独立的小说弹幕网站包括小说在线阅读、TXT下载、小说弹幕、小说自动爬取、小说内容自动分享到微博、链接自动推送到百度搜索引擎等功能。现公布web端代码需要移动端和小程序代码的也可以找我。
小说精品屋是一个功能完善的小说弹幕网站,包含精品小说专区和轻小说专区。包括小说分类、小说搜索、小说排行、小说评分、小说在线阅读、小说书架、小说下载、小说弹幕、小说自动爬取、小说内容自动分享到微博、链接自动推送到百度搜索引擎等功能。现公布web端代码需要android端和小程序代码的也可以找我。
#### 软件架构
Springboot+mybatis+Mysql+Ehcache+Layui
Springboot+Mybatis+Mysql+Ehcache+Thymeleaf+Layui
#### 安装教程
1. 使用maven插件的package命令将项目打包成jar文件
2. 将jar文件和项目根路径下的runSearchJava.sh一起上传到服务器
3. 使用chmod +x runSearchJava.sh命令使文件可执行
4. 运行runSearchJava.sh脚本即可如果新浪微博登录cookie过期走5、6步否则到此结束
5. 如果新浪微博登录cookie失效去浏览器network获取登录cookie值
6. 修改runSearchJava.sh脚本中的启动参数browser.cookieJVM的值为新获取的值并保存
7. kill掉Javach程序重新运行runSearchJava.sh脚本即可
1. 数据准备,拉取小说爬虫程序,按照说明文件爬取网络小说到数据库中。([点击获取爬虫程序](https://gitee.com/xiongxyang/crawl-book)
2. 修改项目application.yml配置文件中的数据库配置。
3. 本地直接运行或使用maven插件打包成jar文件上传到服务器上。
4. http://ip:port访问首页
5. http://ip:port/books访问精品小说模块
6. http://ip.port/book/searchSoftBook.html访问轻小说模块
#### 项目截图
1. 电脑端
1. 电脑端(首页)
![index](./assets/index.png)
![index](./assets/精品小说楼.png)
2. 手机端
2. 移动端(首页)
![index](./assets/QQ图片20191018162208.jpg)
3. 移动端(轻小说专区)
![index](./assets/QQ图片20191018161330.jpg)
4. 移动端(小说详情页)
![微信图片_20190904181558](./assets/微信图片_20190904181558.png)
3. 小程序
5. 移动端(小说阅读页)
![QQ图片20191018161901](./assets/QQ图片20191018161901.png)
6. 小程序
![mini4](./assets/mini4.png)
#### 演示地址
##### 演示地址1
[点击前往](https://www.zinglizingli.xyz)
##### 演示地址2备用
[点击前往](http://47.106.243.172)
#### 小程序二维码
![mini-code](./assets/mini-code.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 KiB

BIN
assets/精品小说楼.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -8,7 +8,7 @@ import xyz.zinglizingli.search.filter.SearchFilter;
@Configuration
public class FilterConfig{
@Bean
//@Bean
public FilterRegistrationBean filterRegist() {
FilterRegistrationBean frBean = new FilterRegistrationBean();
frBean.setFilter(new SearchFilter());

View File

@ -15,8 +15,7 @@ public class IndexController {
@RequestMapping(value = {"/index.html","/"})
public String index(ModelMap modelMap){
modelMap.put("hotBookList", ContentFactory.giveRandomContent());
return "index";
public String index(){
return "redirect:/books";
}
}

View File

@ -6,7 +6,7 @@ spring:
# url: jdbc:mysql://148.70.59.92:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false
# username: xiongxiaoyang
# password: Lzslov123!
url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false
url: jdbc:mysql://148.70.59.92:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: xiongxiaoyang
password: Lzslov123!
# url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf-8

View File

@ -120,7 +120,7 @@
<div class="layui-container" style="padding: 0px">
<div class="layui-row" style="text-align: center">
<a href="/book/466.html">
<a href="/book/6259.html">
<div style="padding: 1%" class="layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4">
<img style=" width:80%; height:auto; max-width:100%; max-height:100%;"
src="https://www.biquta.com//BookFiles/BookImages/106708.jpg"/>
@ -128,7 +128,7 @@
黎明之剑
</div>
</a>
<a href="/book/482.html">
<a href="/book/6392.html">
<div style="padding: 1%" class="layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4">
<img style=" width:80%; height:auto; max-width:100%; max-height:100%;"
src="https://www.biquta.com//BookFiles/BookImages/111346.jpg"/>
@ -136,7 +136,7 @@
诸天投影
</div>
</a>
<a href="/book/349.html">
<a href="/book/6348.html">
<div style="padding: 1%" class="layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4">
<img style=" width:80%; height:auto; max-width:100%; max-height:100%;"
src="https://www.biquta.com//BookFiles/BookImages/122158.jpg"/>

View File

@ -1,6 +1,5 @@
<div th:fragment="footer" style="height: 60px;line-height: 60px;text-align: center" class="layui-footer footer footer-demo layui-bg-cyan">
<a href="https://sf.zinglizingli.xyz" style="font-size: 14px;color: #92B8B1;">轻小说</a>
<a href="https://m.zinglizingli.xyz" style="font-size: 14px;color: #92B8B1;margin-left: 8px">更多小说</a>
<a href="/book/searchSoftBook.html" style="font-size: 14px;color: #92B8B1;">轻小说</a>
<a href="javascript:readHistory()" style="font-size: 14px;color: #92B8B1;margin-left: 8px">阅读记录</a>
<a href="javascript:toMyCollect()" style="font-size: 14px;color: #92B8B1;margin-left: 8px">书架</a>
<a href="/HotBook.apk" style="font-size: 14px;color: #92B8B1;margin-left: 8px">客户端</a>

View File

@ -1,5 +1,5 @@
<div th:fragment="footer" style="height: 60px;line-height: 60px;text-align: center" class="layui-footer footer footer-demo layui-bg-cyan">
<a href="https://www.zinglizingli.xyz" style="font-size: 14px;color: #92B8B1;">更多小说</a>
<a href="/book" style="font-size: 14px;color: #92B8B1;">更多小说</a>
<a href="javascript:readHistory()" style="font-size: 14px;color: #92B8B1;margin-left: 8px">阅读记录</a>
<a href="javascript:toMyCollect()" style="font-size: 14px;color: #92B8B1;margin-left: 8px">书架</a>
<a href="/HotBook.apk" style="font-size: 14px;color: #92B8B1;margin-left: 8px">客户端</a>