cl
2024-01-19 e0fac38b26845f25de479783e0c76cf12a5311e0
提交 | 用户 | 时间
71e81e 1 package cn.stylefeng.guns.config;
2
3 import cn.stylefeng.guns.sys.core.properties.BeetlProperties;
4 import cn.stylefeng.guns.sys.core.properties.GunsProperties;
5 import org.springframework.boot.context.properties.ConfigurationProperties;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.Configuration;
8
9 /**
10  * 项目中的配置
11  *
12  * @author fengshuonan
13  * @Date 2019/5/10 22:45
14  */
15 @Configuration
16 public class GunsPropertiesConfig {
17
18     /**
19      * beetl模板的配置
20      *
21      * @author fengshuonan
22      * @Date 2019-06-13 08:55
23      */
24     @Bean
25     @ConfigurationProperties(prefix = BeetlProperties.BEETLCONF_PREFIX)
26     public BeetlProperties beetlProperties() {
27         return new BeetlProperties();
28     }
29
30     /**
31      * Guns的属性配置
32      *
33      * @author fengshuonan
34      * @Date 2019-06-13 08:56
35      */
36     @Bean
37     @ConfigurationProperties(prefix = GunsProperties.PREFIX)
38     public GunsProperties gunsProperties() {
39         return new GunsProperties();
40     }
41
42 }