类 I18nTableService

java.lang.Object
net.sohelp.boot.admin.core.service.i18n.I18nTableService

@Component public class I18nTableService extends Object
根据所有实体生成i18n中文国际化
从以下版本开始:
2024/12/10 9:15
作者:
AaronFung
  • 构造器详细资料

    • I18nTableService

      public I18nTableService()
  • 方法详细资料

    • buildI18nByTable

      @Comment("\u6839\u636e\u6240\u6709\u5b9e\u4f53\u751f\u6210i18n\u4e2d\u6587\u56fd\u9645\u5316") public String buildI18nByTable(String datasourceName, boolean json) throws SQLException
      根据所有表结构信息生成i18n中文国际化配置内容。 支持两种输出格式:标准键值对或JSON格式。
      参数:
      datasourceName - 数据源名称,默认使用"default"
      json - 是否以JSON格式输出结果
      返回:
      国际化配置字符串(键值对形式或JSON)
      抛出:
      SQLException - 当访问数据库过程中出现SQL异常时抛出
    • buildI18nByTable

      @Comment("\u6839\u636e\u6240\u6709\u5b9e\u4f53\u751f\u6210i18n\u4e2d\u6587\u56fd\u9645\u5316") public String buildI18nByTable(String datasourceName, List<String> table, boolean json) throws SQLException
      根据指定的一组表结构信息生成i18n中文国际化配置内容。 支持两种输出格式:标准键值对或JSON格式。
      参数:
      datasourceName - 数据源名称,默认使用"default"
      table - 指定要处理的表名列表
      json - 是否以JSON格式输出结果
      返回:
      国际化配置字符串(键值对形式或JSON)
      抛出:
      SQLException - 当访问数据库过程中出现SQL异常时抛出