mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
【fix】md
This commit is contained in:
@ -0,0 +1,65 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.ui;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.wu.framework.web.ui.LazyUI;
|
||||
|
||||
/**
|
||||
* netty 客户端本地UI
|
||||
*/
|
||||
@Configuration
|
||||
public class WLCNUI implements LazyUI {
|
||||
public static final String UI_URL = "/wlcn/**";
|
||||
public static final String UI_URL_INDEX = "/wlcn/index.html";
|
||||
public static final String CLASSPATH = "classpath:/netty-server-ui/v1/";
|
||||
|
||||
/**
|
||||
* 是否支持 default false
|
||||
* <p>
|
||||
* pathPatterns 格式 /acw-client-ui/**
|
||||
* locations 格式 classpath:/acw-local-client/v1/
|
||||
* </p>
|
||||
*
|
||||
* @return true、false
|
||||
*/
|
||||
@Override
|
||||
public boolean support() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UI 描述
|
||||
*/
|
||||
@Override
|
||||
public String desc() {
|
||||
return "Netty 服务端 UI";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UI 访问的path
|
||||
* 例如:/acw-client-ui/**
|
||||
*/
|
||||
@Override
|
||||
public String pathPatterns() {
|
||||
return UI_URL;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回页面首页地址
|
||||
*
|
||||
* @return String
|
||||
* 例如 /acw-client-ui/index.html
|
||||
*/
|
||||
@Override
|
||||
public String index() {
|
||||
return UI_URL_INDEX;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 文件资源
|
||||
* 例如:classpath:/acw-local-client/v1/
|
||||
*/
|
||||
@Override
|
||||
public String locations() {
|
||||
return CLASSPATH;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user