From a147a8ec0eaf7230cfc1ba5b05e17ba9ea1187e3 Mon Sep 17 00:00:00 2001 From: peiyanni Date: Tue, 22 Jun 2021 14:08:08 +0800 Subject: [PATCH] BusinessConstant --- .../config/BusinessAutoConfiguration.java | 29 +++++++++++++++++++ .../business/constant/BusinessConstant.java | 14 +++++++++ 2 files changed, 43 insertions(+) create mode 100644 report-core/src/main/java/com/anjiplus/template/gaea/business/config/BusinessAutoConfiguration.java create mode 100644 report-core/src/main/java/com/anjiplus/template/gaea/business/constant/BusinessConstant.java diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/config/BusinessAutoConfiguration.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/config/BusinessAutoConfiguration.java new file mode 100644 index 00000000..9c6751a1 --- /dev/null +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/config/BusinessAutoConfiguration.java @@ -0,0 +1,29 @@ +package com.anjiplus.template.gaea.business.config; + +import com.anjiplus.template.gaea.business.runner.ApplicationInitRunner; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * business配置类 + * @author lr + * @since 2021-04-08 + */ +@Configuration +@MapperScan(basePackages = { + "com.anjiplus.template.gaea.business.modules.*.dao", + "com.anjiplus.template.gaea.business.modules.*.**.dao" +}) +public class BusinessAutoConfiguration { + + /** + * 系统启动完执行 + * @return + */ + @Bean + public ApplicationInitRunner applicationInitRunner() { + return new ApplicationInitRunner(); + } +} diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/constant/BusinessConstant.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/constant/BusinessConstant.java new file mode 100644 index 00000000..3c825b93 --- /dev/null +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/constant/BusinessConstant.java @@ -0,0 +1,14 @@ +package com.anjiplus.template.gaea.business.constant; + +/** + * 常量 + * @author lr + * @since 2021-03-26 + */ +public interface BusinessConstant { + + /** + * 字典项重复 + */ + String DICT_ITEM_EXIST_GROUP = "dictItemExist"; +}