refactor: 生成代码重构优化
This commit is contained in:
@@ -36,7 +36,7 @@ public class CaptchaConfig {
|
||||
} else if ("random".equalsIgnoreCase(codeType)) {
|
||||
return new RandomGenerator(codeLength);
|
||||
} else {
|
||||
throw new IllegalArgumentException("Invalid captcha generator type: " + codeType);
|
||||
throw new IllegalArgumentException("Invalid captcha codegen type: " + codeType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ import java.util.Map;
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "generator")
|
||||
@ConfigurationProperties(prefix = "codegen")
|
||||
@Data
|
||||
public class GeneratorProperties {
|
||||
public class CodegenProperties {
|
||||
|
||||
|
||||
/**
|
||||
@@ -58,7 +58,7 @@ public class GeneratorProperties {
|
||||
public static class TemplateConfig {
|
||||
|
||||
/**
|
||||
* 模板路径 (e.g. /templates/generator/controller.java.vm)
|
||||
* 模板路径 (e.g. /templates/codegen/controller.java.vm)
|
||||
*/
|
||||
private String templatePath;
|
||||
|
||||
Reference in New Issue
Block a user