From 9e9106cf8ccc6840dd4b89fb0ebdb008f59569d6 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Sun, 2 Jul 2023 17:10:44 +0800 Subject: [PATCH] feat: add mybatis-flex-admin properties. --- .../spring/boot/MybatisFlexProperties.java | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexProperties.java b/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexProperties.java index 6891175d..e2d02426 100644 --- a/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexProperties.java +++ b/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexProperties.java @@ -60,6 +60,11 @@ public class MybatisFlexProperties { */ private GlobalConfig globalConfig; + /** + * MyBatis-Flex-Admin 配置。 + */ + private AdminConfig adminConfig; + /** * Location of MyBatis xml config file. */ @@ -128,6 +133,14 @@ public class MybatisFlexProperties { this.globalConfig = globalConfig; } + public AdminConfig getAdminConfig() { + return adminConfig; + } + + public void setAdminConfig(AdminConfig adminConfig) { + this.adminConfig = adminConfig; + } + /** * @since 1.1.0 */ @@ -793,4 +806,52 @@ public class MybatisFlexProperties { } + /** + * MyBatis Flex Admin 配置。 + * + * @author 王帅 + * @since 2023-07-02 + */ + public static class AdminConfig { + + /** + * 启用服务。 + */ + private boolean enable; + + /** + * 连接端点。 + */ + private String endpoint; + + /** + * 秘密密钥。 + */ + private String secretKey; + + public boolean isEnable() { + return enable; + } + + public void setEnable(boolean enable) { + this.enable = enable; + } + + public String getEndpoint() { + return endpoint; + } + + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + + public String getSecretKey() { + return secretKey; + } + + public void setSecretKey(String secretKey) { + this.secretKey = secretKey; + } + } + }