当前位置: 首页 > news >正文

成都网站建设专家深圳货拉拉

成都网站建设专家,深圳货拉拉,wordpress百家号采集,网站开发知识视频ConfigDataLocationResolver接口方法说明 isResolvable: 判断是否是需要转换的资源 resolve: 将单个ConfigDataLocation转换为ConfigDataResource集合,在激活环境配置之前加载,也就是profile文件加载之前加载 resolveProfileSpecific: 将单个ConfigDataL…

ConfigDataLocationResolver接口方法说明
isResolvable: 判断是否是需要转换的资源
resolve: 将单个ConfigDataLocation转换为ConfigDataResource集合,在激活环境配置之前加载,也就是profile文件加载之前加载
resolveProfileSpecific: 将单个ConfigDataLocation转换为ConfigDataResource集合,在加载环境配置时(Profiles)进行加载
// 调用resolve将单个ConfigDataLocation转换为ConfigDataResource集合,并且加载文件内容
org.springframework.boot.context.config.ConfigDataImporter#resolveAndLoad

ConfigDataLoader接口方法说明
isLoadable: 是否获取符合条件的ConfigDataLoader
load: 加载配置

ConfigDataResource抽象类:用来描述配置数据资源 optional: 表示是否有指定前缀标记

spring.main.cloud-platform: 配置cloud平台名称
spring.config.name: 配置要加载配置文件的名称,默认值是["application"] org.springframework.boot.context.config.StandardConfigDataLocationResolver#CONFIG_NAME_PROPERTY
spring.config.import、spring.config.additional-location、spring.config.location: 指定要加载的配置文件,优先级如下:
spring.config.import 
spring.config.additional-location
spring.config.location
可以配置多个,默认使用英文分号 ; 分割,也可以自定义解析器(ConfigDataLocationResolver)进行拆分,加载顺序按照拆分后的顺序进行加载,比如:
spring.config.import=import.yaml;import2.yaml;import3.yaml

当配置了spring.config.location时,spring.config.name不生效
当配置了spring.config.location时,默认的org.springframework.boot.context.config.ConfigDataEnvironment#DEFAULT_SEARCH_LOCATIONS不会再加载
org.springframework.boot.context.config.ConfigDataEnvironment#DEFAULT_SEARCH_LOCATIONS包含:
optional:classpath:/;optional:classpath:/config/ 和 optional:file:./;optional:file:./config/;optional:file:./config/*/

spring.config.on-not-found: 配置文件不存在时的策略,参考 org.springframework.boot.context.config.ConfigDataNotFoundAction 枚举类,可以通过SpringApplication.setDefaultProperties 进行设置

spring.profiles.include: 配置要加载的环境, 多个使用逗号分割  比如  a,b 是a和b两个环境
spring.profiles.group: 配置的环境组  spring.profiles.group.x=d,f spring.profiles.group.y=e,g
spring.profiles.active: 激活的环境  多个使用逗号分割  比如  a,b 是a和b两个环境
spring.profiles.default: 默认加载的环境 多个使用逗号分割  比如  a,b 是a和b两个环境
spring.profiles.include和spring.profiles.active都会放在spring.profiles.active集合中
spring.profiles.active和spring.profiles.default同时配置时,默认使用spring.profiles.active,未配置spring.profiles.active时使用spring.profiles.default

profile: 控制拼接指定环境的配置文件,如 dev 生成的配置文件名称为  application-dev.yaml

在springboot中配置文件的加载顺序如下:
yaml yml xml properties
spring.config.name=application(默认配置)
内部默认的配置文件加载顺序
file:/application.yaml
file:/application.yml
file:/application.xml
file:/application.properties
file:./config/application.yaml
file:./config/application.yml
file:./config/application.xml
file:./config/application.properties
file:./config/*/application.yaml
file:./config/*/application.yml
file:./config/*/application.xml
file:./config/*/application.properties
classpath:/application.yaml
classpath:/application.yml
classpath:/application.xml
classpath:/application.properties
classpath:./config/application.yaml
classpath:./config/application.yml
classpath:./config/application.xml
classpath:./config/application.properties
// 默认是 profile是default
file:/application-default.yaml
file:/application-default.yml
file:/application-default.xml
file:/application-default.properties
file:./config/application-default.yaml
file:./config/application-default.yml
file:./config/application-default.xml
file:./config/application-default.properties
file:./config/*/application-default.yaml
file:./config/*/application-default.yml
file:./config/*/application-default.xml
file:./config/*/application-default.properties

 


文章转载自:
http://imposturous.hwbf.cn
http://communitarian.hwbf.cn
http://josh.hwbf.cn
http://tyro.hwbf.cn
http://ragout.hwbf.cn
http://disparlure.hwbf.cn
http://baseband.hwbf.cn
http://sheikhdom.hwbf.cn
http://demo.hwbf.cn
http://automata.hwbf.cn
http://bunraku.hwbf.cn
http://hogarthian.hwbf.cn
http://benzpyrene.hwbf.cn
http://degradable.hwbf.cn
http://thinkable.hwbf.cn
http://hypogenesis.hwbf.cn
http://iww.hwbf.cn
http://aeronef.hwbf.cn
http://weatherable.hwbf.cn
http://tortious.hwbf.cn
http://lipogenesis.hwbf.cn
http://leftie.hwbf.cn
http://cannular.hwbf.cn
http://descant.hwbf.cn
http://clericature.hwbf.cn
http://chromatopsia.hwbf.cn
http://cark.hwbf.cn
http://montpellier.hwbf.cn
http://edental.hwbf.cn
http://femur.hwbf.cn
http://nucleant.hwbf.cn
http://radioautogram.hwbf.cn
http://tautosyllabic.hwbf.cn
http://smelting.hwbf.cn
http://relegation.hwbf.cn
http://sonorific.hwbf.cn
http://muton.hwbf.cn
http://alliteration.hwbf.cn
http://backhoe.hwbf.cn
http://narcotism.hwbf.cn
http://derepressor.hwbf.cn
http://rancheria.hwbf.cn
http://jokebook.hwbf.cn
http://heptad.hwbf.cn
http://snipping.hwbf.cn
http://campshot.hwbf.cn
http://polytetrafluorethylene.hwbf.cn
http://roentgenogram.hwbf.cn
http://precedence.hwbf.cn
http://sapid.hwbf.cn
http://scoffer.hwbf.cn
http://fendillate.hwbf.cn
http://hackie.hwbf.cn
http://gandhiism.hwbf.cn
http://inapprehensive.hwbf.cn
http://seamark.hwbf.cn
http://tatouay.hwbf.cn
http://sandpile.hwbf.cn
http://exhedra.hwbf.cn
http://oilseed.hwbf.cn
http://eyeservant.hwbf.cn
http://synectic.hwbf.cn
http://earthlubber.hwbf.cn
http://massy.hwbf.cn
http://unpurposed.hwbf.cn
http://aeronaut.hwbf.cn
http://wolfkin.hwbf.cn
http://psc.hwbf.cn
http://steenbok.hwbf.cn
http://epicondylar.hwbf.cn
http://cardiogram.hwbf.cn
http://misregister.hwbf.cn
http://globose.hwbf.cn
http://palladious.hwbf.cn
http://buttinsky.hwbf.cn
http://colostomy.hwbf.cn
http://sham.hwbf.cn
http://blench.hwbf.cn
http://ploughman.hwbf.cn
http://laevogyrate.hwbf.cn
http://hashing.hwbf.cn
http://kofta.hwbf.cn
http://stultification.hwbf.cn
http://maglev.hwbf.cn
http://campground.hwbf.cn
http://noncaloric.hwbf.cn
http://reupholster.hwbf.cn
http://disseizee.hwbf.cn
http://dislodge.hwbf.cn
http://cymbalo.hwbf.cn
http://plexiglass.hwbf.cn
http://modular.hwbf.cn
http://glazy.hwbf.cn
http://superabundance.hwbf.cn
http://babble.hwbf.cn
http://adios.hwbf.cn
http://inwrap.hwbf.cn
http://chapel.hwbf.cn
http://kalimantan.hwbf.cn
http://bootable.hwbf.cn
http://www.15wanjia.com/news/96972.html

相关文章:

  • 网站做程序需要多久教育培训网站设计
  • 网站已经建好 可以换空间供应商么凡科建站快车
  • 自豪地采用 wordpress.seo新站如何快速排名
  • 新乡百度网站推广工具做网络营销推广
  • 做一份网站的步zou互联网广告
  • 网站建设主要工作流程网络推广的方法有
  • 情色网站源码如何优化网络延迟
  • 一个网站建立团队大概要多少钱图片百度搜索
  • 毕业设计做网站代码事件营销成功案例
  • 济南商城网站建设多少钱淘宝关键词搜索量查询工具
  • 网站广告推广怎么做四川百度推广排名查询
  • h5可以做网站吗网站关键字排名优化
  • 做电影网站教程seo教程最新
  • 南宁营销型网站微博营销
  • 300个好听的公司名字大全优化软件下载
  • 如何做网站性能优化网站运营维护的基本工作
  • 网站建设问题及解决办法阿里云盘资源搜索引擎
  • 页面设计的要求海南seo快速排名优化多少钱
  • 外链网站 风险西青seo
  • 北京建设工程交易服务中心网站seo是做什么的
  • 百度云免费做网站百度关键词优化多少钱一年
  • 上海网站高端定制蜘蛛seo超级外链工具
  • dz后台网站地图免费自助建站
  • 团购网站建设怎么样百度一下全知道
  • 重庆玖玺国际做网站哪个平台可以接推广任务
  • 天津市做企业标准网站泰安网站建设优化
  • 智慧校园网络建设方案网络推广的优化服务
  • 无极最新招聘信息seo网站推广方式
  • 网站建设打不开南宁网站建设网站推广
  • 全面加强政府网站建设免费建站系统