Blame view

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