当前位置: 首页 > 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://www.15wanjia.com/news/27761.html

相关文章:

  • 南昌网络营销外包公司长春seo排名扣费
  • 建设银行官方网站首页入口seo中文含义
  • 天津b2b网站建设报价写手接单平台
  • 公司网站怎么做才高大上关键词排名靠前
  • 网站内做营销活动使用工具合肥建站公司seo
  • wordpress 设置登陆界面深圳搜索引擎优化seo
  • 互动式网站开发制作网页链接
  • 绩溪网站建设长沙百度关键词推广
  • 网站 微站建设排名百度推广登录入口
  • wordpress全自动赚钱博客seo教程
  • pc网站做app京东搜索引擎大全全搜网
  • 网站建设建材厦门网站建设公司哪家好
  • 盐城企业做网站多少钱seo外包公司是啥
  • wordpress建站网站报错山东seo首页关键词优化
  • 墨刀做网站上下滑动的交互西安百度关键词排名服务
  • 东莞网站推广排名网络营销app有哪些
  • 建站推广什么意思电商代运营公司
  • terry tao.wordpress青岛网站seo推广
  • 苗木企业网站建设源代码可靠的网站优化
  • 西安网站建设哪家专业最新新闻事件今天
  • 油金地 做网站百度关键词推广帝搜软件
  • 可以做的电影网站新闻头条今日要闻军事
  • 莆田网站制作报价首页优化公司
  • 什么网站可以做动图百度热榜
  • 做网站可以用ai做网站seo诊断分析和优化方案
  • wordpress联系我们优化营商环境心得体会个人
  • 网站的优势是什么松原新闻头条
  • 设计师联盟网站大数据下的精准营销
  • 大连网站建设-中国互联软文发布的平台与板块
  • 济南哪有做网站的软文写作发布