You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
649 B
25 lines
649 B
package com.animal.crawler;
|
|
|
|
import com.animal.controller.CrawlerController;
|
|
|
|
/**
|
|
* 主类 - 程序入口点
|
|
* 实现 CLI + MVC + Command模式 + 策略模式 + 异常体系
|
|
*/
|
|
public class Main {
|
|
|
|
/**
|
|
* 主方法 - 程序入口
|
|
* @param args 命令行参数
|
|
*/
|
|
public static void main(String[] args) {
|
|
try {
|
|
// 创建控制器并启动应用
|
|
CrawlerController controller = new CrawlerController();
|
|
controller.start();
|
|
} catch (Exception e) {
|
|
System.err.println("程序启动失败: " + e.getMessage());
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
|