springboot 自定義yml 配置文件

springboot 在1.5版本之後,@ConfigurationProperties去除location參數,所以沒法直接導出yml配置文件,java 而properties配置文件能夠經過@PropertySource或者@ImportResource 來直接導入,所以整理兩種導入自定義yml文件spring 一、使用YamlPropertiesFactoryBean來加載並設置到Prope
相關文章
相關標籤/搜索