GenConfig.java 780 B

123456789101112131415161718192021222324252627282930
  1. package com.ruoyi.generator.config;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.context.annotation.PropertySource;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * 读取代码生成相关配置
  8. *
  9. * @author ruoyi
  10. */
  11. @Component
  12. @ConfigurationProperties(prefix = "gen")
  13. @PropertySource(value = { "classpath:generator.yml" })
  14. public class GenConfig {
  15. /** 作者 */
  16. public static String author;
  17. /** 生成包路径 */
  18. public static String packageName;
  19. /** 自动去除表前缀,默认是false */
  20. public static boolean autoRemovePre;
  21. /** 表前缀(类名不会包含表前缀) */
  22. public static String tablePrefix;
  23. }