Compare commits

..

5 Commits

Author SHA1 Message Date
xiongxiaoyang
43213adba4 v5.2.6 发布 2025-10-04 21:42:35 +08:00
xiongxiaoyang
f49d0dd1c0 fix: 修复因缓存 key 未更新导致小说推荐无法刷新的问题 2025-10-04 19:53:51 +08:00
xiongxiaoyang
803607350e perf: 禁用爬虫的 Cookie 管理以绕过 Cookie 限制
有助于绕过部分通过 Cookie 来识别爬虫的反爬机制。
2025-10-01 13:36:18 +08:00
xiongxiaoyang
8448e86ac5 feat(windows): 增加生产环境 Windows 一键启动脚本
- 支持从任意路径执行,自动定位项目根目录
- 使用 %~dp0.. 技术确保 user.dir 正确
- 默认加载 prod 环境配置:-Dspring.profiles.active=prod
- 包含 pause 命令,便于查看启动错误
- 支持宝塔 Windows 面板项目执行命令:C:\novel-plus\novel-fornt\bin\novel-front.bat
- 提升 Windows 服务器上的运维效率和可维护性
2025-09-29 17:35:36 +08:00
xiongxiaoyang
1ad240c7f9 perf(linux): 支持从任意路径执行启动脚本
- 使用 readlink 定位脚本真实路径
- 启动时自动切换到项目目录
2025-09-29 17:30:12 +08:00
13 changed files with 34 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.java2nb</groupId>
<artifactId>novel-admin</artifactId>
<version>5.2.5</version>
<version>5.2.6</version>
<packaging>jar</packaging>
<name>novel-admin</name>

View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0.."
java -jar -Dspring.profiles.active=prod novel-admin.jar
pause

View File

@@ -5,9 +5,12 @@ JAR_NAME=$APP_NAME\.jar
PID=$APP_NAME\.pid
#使用说明,用来提示输入参数
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
cd "$SCRIPT_DIR"/.. || exit 1
# 使用说明
usage() {
echo "Usage: ./novel-admin.sh [start|stop|restart|status]"
echo "Usage: $0 [start|stop|restart|status]"
exit 1
}

View File

@@ -8,7 +8,7 @@ public interface CacheKey {
/**
* 首页小说设置
*/
String INDEX_BOOK_SETTINGS_KEY = "indexBookSettingsKey";
String INDEX_BOOK_SETTINGS_KEY = "indexBookSettingsKey:v2";
/**
* 首页新闻

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>novel</artifactId>
<groupId>com.java2nb</groupId>
<version>5.2.5</version>
<version>5.2.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -63,6 +63,8 @@ public class RestTemplates {
connectionManager.setDefaultMaxPerRoute(300);
HttpClientBuilder clientBuilder = HttpClients.custom();
// 禁用 Cookie 管理
clientBuilder.disableCookieManagement();
if (Objects.nonNull(httpProxyProperties) && Boolean.TRUE.equals(httpProxyProperties.getEnabled())) {
HttpHost proxy = new HttpHost(httpProxyProperties.getIp(), httpProxyProperties.getPort());
clientBuilder.setProxy(proxy);

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>novel</artifactId>
<groupId>com.java2nb</groupId>
<version>5.2.5</version>
<version>5.2.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0.."
java -jar -Dspring.profiles.active=prod novel-crawl.jar
pause

View File

@@ -5,9 +5,12 @@ JAR_NAME=$APP_NAME\.jar
PID=$APP_NAME\.pid
#使用说明,用来提示输入参数
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
cd "$SCRIPT_DIR"/.. || exit 1
# 使用说明
usage() {
echo "Usage: ./novel-crawl.sh [start|stop|restart|status]"
echo "Usage: $0 [start|stop|restart|status]"
exit 1
}

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>novel</artifactId>
<groupId>com.java2nb</groupId>
<version>5.2.5</version>
<version>5.2.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0.."
java -jar -Dspring.profiles.active=prod novel-front.jar
pause

View File

@@ -4,10 +4,12 @@ JAR_NAME=$APP_NAME\.jar
#PID 代表是PID文件
PID=$APP_NAME\.pid
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
cd "$SCRIPT_DIR"/.. || exit 1
#使用说明,用来提示输入参数
# 使用说明
usage() {
echo "Usage: ./novel-front.sh [start|stop|restart|status]"
echo "Usage: $0 [start|stop|restart|status]"
exit 1
}

View File

@@ -5,7 +5,7 @@
<groupId>com.java2nb</groupId>
<artifactId>novel</artifactId>
<version>5.2.5</version>
<version>5.2.6</version>
<modules>
<module>novel-common</module>
<module>novel-front</module>