zoukankan      html  css  js  c++  java
  • Autowired properities class

    1. Properties类

    @ConfigurationProperties(locations = "classpath:build.properties")

    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)

    @JsonPropertyOrder(alphabetic = true)

    public class BuildProperties {

        

        @JsonInclude(value = JsonInclude.Include.NON_EMPTY)

        @JsonPropertyOrder(alphabetic = true)

        public static class Versions {

     

    private String app;

    private String spring;

    private String springBoot;

    private String hibernate;

    private String angularjs;

    private String bootstrap;

    private String highcharts;

    ...

    }

    2. 配置类

    @Configuration

    @EnableConfigurationProperties(BuildProperties.class)

    public class PropertiesConfig {

    }

     

  • 相关阅读:
    hbase与Hive的集成
    HBase API操作
    HBase原理
    HBase数据结构
    HBase Shell操作
    HBase简介
    Boxes in a Line
    B
    B. Painting Pebbles
    X
  • 原文地址:https://www.cnblogs.com/feika/p/4454122.html
Copyright © 2011-2022 走看看