feat: NEZ-2030 nz-talon组件 OTA 接口开发

This commit is contained in:
zhangshuai
2022-07-19 16:55:02 +08:00
parent 1740497163
commit b773755d92
7 changed files with 179 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package net.geedge.confagent.controller;
import cn.hutool.log.Log;
import net.geedge.confagent.util.Tool;
import org.springframework.beans.factory.annotation.Value;
public abstract class BaseController {
@@ -22,6 +23,15 @@ public abstract class BaseController {
@Value("${confagent.promtail.config}")
protected String promtailConfPath;
@Value("${version}")
protected String currentVersion;
/**
* aes 对称加密 密钥
*/
public static final byte[] AES_SECRET_KEY = Tool.HexUtil.decodeHex("bde5430614b21baf1c53bd6f616d1a39");
/**
* 调用 /-/reload 接口,热加载 server 配置文件,