首页
/ Apache Shenyu Watcher 使用教程

Apache Shenyu Watcher 使用教程

2024-09-02 21:10:10作者:管翌锬

1. 项目的目录结构及介绍

shenyu-watcher/
├── README.md
├── pom.xml
├── shenyu-watcher-core/
│   ├── pom.xml
│   ├── src/
│   │   ├── main/
│   │   │   ├── java/
│   │   │   │   └── org/
│   │   │   │       └── apache/
│   │   │   │           └── shenyu/
│   │   │   │               └── watcher/
│   │   │   │                   ├── config/
│   │   │   │                   ├── handler/
│   │   │   │                   ├── listener/
│   │   │   │                   └── WatcherApplication.java
│   │   │   └── resources/
│   │   │       ├── application.yml
│   │   │       └── logback.xml
│   └── test/
│       └── java/
│           └── org/
│               └── apache/
│                   └── shenyu/
│                       └── watcher/
│                           └── WatcherApplicationTests.java
└── shenyu-watcher-starter/
    ├── pom.xml
    ├── src/
    │   ├── main/
    │   │   ├── java/
    │   │   │   └── org/
    │   │   │       └── apache/
    │   │   │           └── shenyu/
    │   │   │               └── watcher/
    │   │   │                   └── starter/
    │   │   │                       └── WatcherStarterApplication.java
    │   │   └── resources/
    │   │       ├── application.yml
    │   │       └── logback.xml
    └── test/
        └── java/
            └── org/
                └── apache/
                    └── shenyu/
                        └── watcher/
                            └── starter/
                                └── WatcherStarterApplicationTests.java

目录结构介绍

  • shenyu-watcher-core/: 核心模块,包含主要的业务逻辑和配置。

    • src/main/java/org/apache/shenyu/watcher/: 主要的Java源代码目录。
      • config/: 配置类。
      • handler/: 处理器类。
      • listener/: 监听器类。
      • WatcherApplication.java: 主启动类。
    • src/main/resources/: 资源文件目录。
      • application.yml: 主配置文件。
      • logback.xml: 日志配置文件。
  • shenyu-watcher-starter/: 启动模块,用于启动整个项目。

    • src/main/java/org/apache/shenyu/watcher/starter/: 启动相关的Java源代码目录。
      • WatcherStarterApplication.java: 启动类。
    • src/main/resources/: 资源文件目录。
      • application.yml: 配置文件。
      • logback.xml: 日志配置文件。

2. 项目的启动文件介绍

主启动类

  • shenyu-watcher-core/src/main/java/org/apache/shenyu/watcher/WatcherApplication.java
package org.apache.shenyu.watcher;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class WatcherApplication {
    public static void main(String[] args) {
        SpringApplication.run(WatcherApplication.class, args);
    }
}

启动类

  • shenyu-watcher-starter/src/main/java/org/apache/shenyu/watcher/starter/WatcherStarterApplication.java
package org.apache.shenyu.watcher.starter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class WatcherStarterApplication {
    public static void main(String[] args) {
        SpringApplication.run(WatcherStarterApplication.class, args);
    }
}

3. 项目的配置文件介绍

主配置文件

  • `shenyu-watcher
登录后查看全文

项目优选

收起
kernelkernel
openEuler内核是openEuler操作系统的核心,既是系统性能与稳定性的基石,也是连接处理器、设备与服务的桥梁。
C
471
465
kernelkernel
deepin linux kernel
C
32
16
atomcodeatomcode
Claude Code 的开源替代方案。连接任意大模型,编辑代码,运行命令,自动验证 — 全自动执行。用 Rust 构建,极致性能。 | An open-source alternative to Claude Code. Connect any LLM, edit code, run commands, and verify changes — autonomously. Built in Rust for speed. Get Started
Rust
2.09 K
218
ops-nnops-nn
本项目是CANN提供的神经网络类计算算子库,实现网络在NPU上加速计算。
C++
700
1.4 K
docsdocs
暂无描述
Dockerfile
780
5.08 K
pytorchpytorch
Ascend Extension for PyTorch
Python
758
968
flutter_flutterflutter_flutter
本仓库是 Flutter SDK 与 Flutter Engine 的 OpenHarmony 适配版本,由 CPF-Flutter 团队维护。开发者可使用熟悉的 Flutter 技术栈开发 OpenHarmony 应用,3.35.7 及以后的适配版本可基于本仓库源码构建支持 OpenHarmony 的 Flutter Engine。
Dart
1.04 K
271
ops-transformerops-transformer
本项目是CANN提供的transformer类大模型算子库,实现网络在NPU上加速计算。
C++
880
2.03 K
mindquantummindquantum
MindQuantum is a general software library supporting the development of applications for quantum computation.
Python
183
111
openHiTLSopenHiTLS
旨在打造算法先进、性能卓越、高效敏捷、安全可靠的密码套件,通过轻量级、可剪裁的软件技术架构满足各行业不同场景的多样化要求,让密码技术应用更简单,同时探索后量子等先进算法创新实践,构建密码前沿技术底座!
C
1.11 K
682