feat(ui): 更新应用标题为“中差评采集工具”
将登录页面和平台选择页面的窗口标题统一修改为“中差评采集工具”,以更准确地反映应用功能。 feat(core): 注释掉 Playwright Cookie 示例代码 暂时注释掉 DesktopApplication 中的 runPlaywrightCookieExample 方法及相关调用,便于后续调试或移除。 feat(module): 添加缺失的模块依赖并调整导出配置 在 module-info.java 中添加对 spring.core 和 java.desktop 的依赖,并优化 exports 配置,确保模块系统正确导入与导出。feat(build): 更新 JavaFX Maven 插件配置将主类更新为 DesktopApplication,并自定义 jlink 打包名称及运行时参数,增强打包灵活性与模块支持。
This commit is contained in:
11
pom.xml
11
pom.xml
@@ -130,12 +130,17 @@
|
||||
<artifactId>javafx-maven-plugin</artifactId>
|
||||
<version>${javafx.maven.plugin.version}</version>
|
||||
<configuration>
|
||||
<mainClass>com.fantaibao.JavaFxApplication</mainClass>
|
||||
<mainClass>com.fantaibao.DesktopApplication</mainClass>
|
||||
<launcher>app</launcher>
|
||||
<jlinkImageName>fxapp</jlinkImageName>
|
||||
<jlinkZipName>fxapp-zip</jlinkZipName>
|
||||
<jlinkImageName>fantaibao-crawler</jlinkImageName>
|
||||
<jlinkZipName>fantaibao-crawler-zip</jlinkZipName>
|
||||
<options>
|
||||
<option>--add-modules</option>
|
||||
<option>javafx.controls,javafx.fxml</option>
|
||||
</options>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
@@ -69,7 +69,7 @@ public class DesktopApplication extends Application {
|
||||
primaryStage.show();
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
private void runPlaywrightCookieExample() {
|
||||
appendText("开始运行Playwright Cookie拦截示例...\n");
|
||||
Thread thread = new Thread(() ->
|
||||
@@ -90,7 +90,7 @@ public class DesktopApplication extends Application {
|
||||
|
||||
private void appendText(String text) {
|
||||
Platform.runLater(() -> textArea.appendText(text + "\n"));
|
||||
}
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class LoginView {
|
||||
|
||||
private void initialize() {
|
||||
// 设置窗口标题
|
||||
primaryStage.setTitle("数据采集智能解决方案");
|
||||
primaryStage.setTitle("中差评采集工具");
|
||||
|
||||
// 创建主容器
|
||||
VBox root = new VBox();
|
||||
|
||||
@@ -22,7 +22,7 @@ public class PlatformSelectionView {
|
||||
|
||||
private void initialize() {
|
||||
// 设置窗口标题
|
||||
primaryStage.setTitle("请选择爬虫平台");
|
||||
primaryStage.setTitle("中差评采集工具");
|
||||
|
||||
// 主容器
|
||||
VBox root = new VBox();
|
||||
|
||||
@@ -5,9 +5,11 @@ module fantaibao.crawler.desktop {
|
||||
requires spring.boot.autoconfigure;
|
||||
requires spring.context;
|
||||
requires spring.beans;
|
||||
requires spring.core;
|
||||
requires playwright;
|
||||
requires org.slf4j;
|
||||
requires lombok;
|
||||
requires java.desktop;
|
||||
|
||||
opens com.fantaibao to spring.core, spring.beans, spring.context,
|
||||
javafx.fxml, javafx.base, javafx.graphics, spring.boot, spring.boot.autoconfigure;
|
||||
@@ -15,5 +17,4 @@ module fantaibao.crawler.desktop {
|
||||
exports com.fantaibao;
|
||||
exports com.fantaibao.service;
|
||||
exports com.fantaibao.page;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user