提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.framework.codegen.config; |
H |
2 |
|
|
3 |
import com.iailab.module.infra.enums.codegen.CodegenFrontTypeEnum; |
|
4 |
import lombok.Data; |
|
5 |
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
6 |
import org.springframework.validation.annotation.Validated; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotEmpty; |
|
9 |
import javax.validation.constraints.NotNull; |
|
10 |
import java.util.Collection; |
|
11 |
|
|
12 |
@ConfigurationProperties(prefix = "iailab.codegen") |
|
13 |
@Validated |
|
14 |
@Data |
|
15 |
public class CodegenProperties { |
|
16 |
|
|
17 |
/** |
|
18 |
* 生成的 Java 代码的基础包 |
|
19 |
*/ |
|
20 |
@NotNull(message = "Java 代码的基础包不能为空") |
|
21 |
private String basePackage; |
|
22 |
|
|
23 |
/** |
|
24 |
* 数据库名数组 |
|
25 |
*/ |
|
26 |
@NotEmpty(message = "数据库不能为空") |
|
27 |
private Collection<String> dbSchemas; |
|
28 |
|
|
29 |
/** |
|
30 |
* 代码生成的前端类型(默认) |
|
31 |
* |
|
32 |
* 枚举 {@link CodegenFrontTypeEnum#getType()} |
|
33 |
*/ |
|
34 |
@NotNull(message = "代码生成的前端类型不能为空") |
|
35 |
private Integer frontType; |
|
36 |
|
|
37 |
} |