疯狂的狮子li
2020-02-13 2841620be623be15c1832a783136a2b73c2b4424
ruoyi/src/main/java/com/ruoyi/framework/config/GenConfig.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,66 @@
package com.ruoyi.framework.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * è¯»å–代码生成相关配置
 *
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "gen")
public class GenConfig
{
    /** ä½œè€… */
    public static String author;
    /** ç”ŸæˆåŒ…路径 */
    public static String packageName;
    /** è‡ªåŠ¨åŽ»é™¤è¡¨å‰ç¼€ï¼Œé»˜è®¤æ˜¯true */
    public static boolean autoRemovePre;
    /** è¡¨å‰ç¼€(类名不会包含表前缀) */
    public static String tablePrefix;
    public static String getAuthor()
    {
        return author;
    }
    public void setAuthor(String author)
    {
        GenConfig.author = author;
    }
    public static String getPackageName()
    {
        return packageName;
    }
    public void setPackageName(String packageName)
    {
        GenConfig.packageName = packageName;
    }
    public static boolean getAutoRemovePre()
    {
        return autoRemovePre;
    }
    public void setAutoRemovePre(boolean autoRemovePre)
    {
        GenConfig.autoRemovePre = autoRemovePre;
    }
    public static String getTablePrefix()
    {
        return tablePrefix;
    }
    public void setTablePrefix(String tablePrefix)
    {
        GenConfig.tablePrefix = tablePrefix;
    }
}