refactor: 生成代码重构优化

This commit is contained in:
ray
2024-09-07 15:24:15 +08:00
parent ce11a459ef
commit b4f11b16d0
69 changed files with 790 additions and 731 deletions

View File

@@ -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);
}
}

View File

@@ -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;