类 MagicAPIProperties

java.lang.Object
org.ssssssss.magicapi.core.config.MagicAPIProperties

@ConfigurationProperties(prefix="magic-api") public class MagicAPIProperties extends Object
magic-api配置信息
作者:
mxd
  • 字段详细资料

    • version

      private final String version
      版本号
    • web

      private String web
      web页面入口
    • prefix

      private String prefix
      接口路径前缀
    • throwException

      private boolean throwException
      是否抛出异常
    • autoImportModule

      private String autoImportModule
      自动导入的模块,多个用","分隔
      从以下版本开始:
      0.3.2
    • autoImportPackage

      private String autoImportPackage
      可自动导入的包(目前只支持以.*结尾的通配符),多个用","分隔
      从以下版本开始:
      0.4.0
    • allowOverride

      private boolean allowOverride
      是否允许覆盖应用接口,默认为false
      从以下版本开始:
      0.4.0
    • sqlColumnCase

      private String sqlColumnCase
      SQL列名转换
      从以下版本开始:
      0.5.0
    • threadPoolExecutorSize

      private int threadPoolExecutorSize
      线程核心数,需要>0,无效输入:'<'=0时采用默认配置,即CPU核心数 * 2
      从以下版本开始:
      0.4.5
    • editorConfig

      private String editorConfig
      编辑器配置文件路径(js)
      从以下版本开始:
      0.6.1
    • supportCrossDomain

      private boolean supportCrossDomain
      是否启用跨域支持
      从以下版本开始:
      1.0.0
    • response

      private String response
      JSON响应结构表达式
      从以下版本开始:
      1.0.0
    • secretKey

      private String secretKey
      远程推送时的秘钥,未配置则不开启
      从以下版本开始:
      1.2.1
    • pushPath

      private String pushPath
      远程推送的路径,默认为/_magic-api-sync
      从以下版本开始:
      1.2.1
    • showUrl

      private boolean showUrl
      启动完成之后打印地址
    • showSql

      private boolean showSql
      是否要打印SQL
      从以下版本开始:
      1.5.0
    • datePattern

      private String[] datePattern
      请求参数日期格式
      从以下版本开始:
      1.5.2
    • compileCacheSize

      private int compileCacheSize
      编译缓存容量
      从以下版本开始:
      1.5.3
    • persistenceResponseBody

      private boolean persistenceResponseBody
      是否持久化保存ResponseBody
      从以下版本开始:
      1.5.3
    • instanceId

      private String instanceId
      实例ID,集群环境下,要保证每台机器不同。默认启动后随机生成uuid
    • security

      @NestedConfigurationProperty private Security security
    • page

      @NestedConfigurationProperty private Page page
    • cache

      @NestedConfigurationProperty private Cache cache
    • debug

      @NestedConfigurationProperty private Debug debug
    • resource

      @NestedConfigurationProperty private Resource resource
    • responseCode

      @NestedConfigurationProperty private ResponseCode responseCode
    • crud

      @NestedConfigurationProperty private Crud crud
    • backup

      @NestedConfigurationProperty private Backup backup
  • 构造器详细资料

    • MagicAPIProperties

      public MagicAPIProperties()
  • 方法详细资料

    • getWeb

      public String getWeb()
    • setWeb

      public void setWeb(String web)
    • getSqlColumnCase

      public String getSqlColumnCase()
    • setSqlColumnCase

      public void setSqlColumnCase(String sqlColumnCase)
    • isBanner

      public boolean isBanner()
    • setBanner

      public void setBanner(boolean banner)
    • getAutoImportModuleList

      public List<String> getAutoImportModuleList()
    • getAutoImportPackageList

      public List<String> getAutoImportPackageList()
    • getVersion

      public String getVersion()
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • isThrowException

      public boolean isThrowException()
    • setThrowException

      public void setThrowException(boolean throwException)
    • getAutoImportModule

      public String getAutoImportModule()
    • setAutoImportModule

      public void setAutoImportModule(String autoImportModule)
    • getAutoImportPackage

      public String getAutoImportPackage()
    • setAutoImportPackage

      public void setAutoImportPackage(String autoImportPackage)
    • isAllowOverride

      public boolean isAllowOverride()
    • setAllowOverride

      public void setAllowOverride(boolean allowOverride)
    • getThreadPoolExecutorSize

      public int getThreadPoolExecutorSize()
    • setThreadPoolExecutorSize

      public void setThreadPoolExecutorSize(int threadPoolExecutorSize)
    • getEditorConfig

      public String getEditorConfig()
    • setEditorConfig

      public void setEditorConfig(String editorConfig)
    • isSupportCrossDomain

      public boolean isSupportCrossDomain()
    • setSupportCrossDomain

      public void setSupportCrossDomain(boolean supportCrossDomain)
    • getResponse

      public String getResponse()
    • setResponse

      public void setResponse(String response)
    • getSecretKey

      public String getSecretKey()
    • setSecretKey

      public void setSecretKey(String secretKey)
    • getPushPath

      public String getPushPath()
    • setPushPath

      public void setPushPath(String pushPath)
    • isShowUrl

      public boolean isShowUrl()
    • setShowUrl

      public void setShowUrl(boolean showUrl)
    • isShowSql

      public boolean isShowSql()
    • setShowSql

      public void setShowSql(boolean showSql)
    • getDatePattern

      public String[] getDatePattern()
    • setDatePattern

      public void setDatePattern(String[] datePattern)
    • getCompileCacheSize

      public int getCompileCacheSize()
    • setCompileCacheSize

      public void setCompileCacheSize(int compileCacheSize)
    • isPersistenceResponseBody

      public boolean isPersistenceResponseBody()
    • setPersistenceResponseBody

      public void setPersistenceResponseBody(boolean persistenceResponseBody)
    • getInstanceId

      public String getInstanceId()
    • setInstanceId

      public void setInstanceId(String instanceId)
    • getSecurity

      public Security getSecurity()
    • setSecurity

      public void setSecurity(Security security)
    • getPage

      public Page getPage()
    • setPage

      public void setPage(Page page)
    • getCache

      public Cache getCache()
    • setCache

      public void setCache(Cache cache)
    • getDebug

      public Debug getDebug()
    • setDebug

      public void setDebug(Debug debug)
    • getResource

      public Resource getResource()
    • setResource

      public void setResource(Resource resource)
    • getResponseCode

      public ResponseCode getResponseCode()
    • setResponseCode

      public void setResponseCode(ResponseCode responseCode)
    • getCrud

      public Crud getCrud()
    • setCrud

      public void setCrud(Crud crud)
    • getBackup

      public Backup getBackup()
    • setBackup

      public void setBackup(Backup backup)