mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-11 05:19:58 +08:00
* !44 comment * !39 添加下行日志打印 * !36 扩展计价领域模型 * !35 webui 初步成型 * !34 webui 初步成型
This commit is contained in:
@@ -10,7 +10,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author baigod
|
||||
* @author 九筒
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
|
||||
@@ -51,7 +51,7 @@ public class TcpHandlerCfg {
|
||||
case TEXT -> HANDLER_MAP.put(type, JacksonUtil.treeToValue(cfgJson, TextHandlerConfiguration.class));
|
||||
case JSON -> HANDLER_MAP.put(type, JacksonUtil.treeToValue(cfgJson, JsonHandlerConfiguration.class));
|
||||
case BINARY -> HANDLER_MAP.put(type, JacksonUtil.treeToValue(cfgJson, BinaryHandlerConfiguration.class));
|
||||
default -> throw new IllegalArgumentException("Unknown TCP handler type: " + type);
|
||||
default -> throw new IllegalArgumentException("未知的TCP处理器类型: " + type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package sanbing.jcpp.protocol.cfg.enums;
|
||||
|
||||
/**
|
||||
* @author baigod
|
||||
* @author 九筒
|
||||
*/
|
||||
public enum TcpHandlerType {
|
||||
TEXT,
|
||||
|
||||
Reference in New Issue
Block a user