类 DsConfigUtil


  • public final class DsConfigUtil
    extends Object
    动态数据源配置相关工具类
    从以下版本开始:
    3.5.0
    作者:
    Taoyu
    • 构造器详细资料

      • DsConfigUtil

        public DsConfigUtil()
    • 方法详细资料

      • lineToUpper

        public static String lineToUpper​(String str)
        横划线转驼峰
        参数:
        str - 原字符串
        返回:
        转换后的字符串
      • getSetterMethods

        public static Map<String,​Method> getSetterMethods​(Class<?> clazz)
        通过clazz获取对应的setter方法
        参数:
        clazz - 类
        返回:
        setter方法
      • convertValue

        public static Object convertValue​(Method method,
                                          Object value)
        将需要传入invoke方法的值转换成方法对应的类型
        参数:
        method - 方法
        value - 值
        返回: