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

怎么做网站设计长春百度seo公司

怎么做网站设计,长春百度seo公司,如何网站建设网页,宣传片拍摄计划目录 概述 同级目录application配置文件优先级 application 以及bootstrap 优先级 不同级目录配置文件优先级 外部配置加载顺序 概述 SpringBoot除了支持properties格式的配置文件,还支持另外两种格式的配置文件。三种配置文件格式分别如下: properties格式…

目录

概述 

同级目录application配置文件优先级

application 以及bootstrap 优先级

不同级目录配置文件优先级

外部配置加载顺序


概述 

SpringBoot除了支持properties格式的配置文件,还支持另外两种格式的配置文件。三种配置文件格式分别如下:

  • properties格式

  • yml格式

  • yaml格式

application.properties(properties格式)

server.port=80

 application.yml(yml格式)

server:port: 81

application.yaml(yaml格式)

server:port: 82

 yml和yaml文件格式就是一模一样的,只是文件后缀不同,所以可以合并成一种格式来看。

  1. yaml语法规则

    • 大小写敏感

    • 属性层级关系使用多行描述,每行结尾使用冒号结束

    • 使用缩进表示层级关系,同层级左侧对齐,只允许使用空格(不允许使用Tab键)

    • 属性值前面添加空格(属性名与属性值之间使用冒号+空格作为分隔)

    • #号 表示注释

  2. 注意属性名冒号后面与数据之间有一个空格

  3. 字面值、对象数据格式、数组数据格式  

同级目录application配置文件优先级

application.properties  >  application.yml  >  application.yaml

每个配置文件中的项都会生效,只不过如果多个配置文件中有相同类型的配置会优先级高的文件覆盖优先级的文件中的配置。如果配置项不同的话,所有的配置项都会生效。

application 以及bootstrap 优先级

bootstrap优先于application加载, 用于应用程序上下文的引导阶段。由spring cloud BootstrapApplicationListenerApplicationEnvironmentPreparedEvent时进行加载。

可以将bootstrap配置理解为系统级别的参数配置,这些参数一般不会变更。

application配置可以理解为定义应用级别的参数,可以覆盖替换bootstrap的配置信息。

application的属性优先较高,加载时先加载bootstrap配置文件,再加载application配置文件 

不同级目录配置文件优先级

加载1. classpath:/                                    -- 优先级4. The classpath root

加载2. classpath:/config/                         -- 优先级3. A classpath /config package

加载3. file:./                                             -- 优先级2. The current directory

加载4. file:./config/                                   -- 优先级1. A /config subdirectory of the current directory.

外部配置加载顺序

SpringBoot也可以从以下位置加载配置:

优先级从高到低;

高优先级的配置覆盖低优先级的配置,所有的配置会形成互补配置。

1.命令行参数

所有的配置都可以在命令行上进行指定;多个配置用空格分开; --配置项=值

java -jar spring-boot-02-config-02-0.0.1-SNAPSHOT.jar

--server.port=8087 --server.context-path=/abc

2.来自java:comp/env的JNDI属性

3.WDpUhJava系统属性(System.getProperties())

4.操作系统环境变量

5.RandomValuePropertySource配置的random.*属性值

6.jar包外部的application-{profile}.properties或application.yml(带spring.profile)配置文件

7.jar包内部的application-{profile}.properties或application.yml(带spring.profile)配置文件

8.jar包外部的application.properties或application.yml(不带spring.profihttp://le)配置文件

9.jar包内部的application.properties或application.yml(不带spring.profile)配置文件

由jar包外向jar包内进行寻找,优先加载带profile的,再加载不带profile的。

10.@Configuration注解类上的@PropertySource

11.通过SpringApplication.setDefaultProperties指定的默认属性


文章转载自:
http://flunkey.mnqg.cn
http://ungainliness.mnqg.cn
http://pesaro.mnqg.cn
http://earthrise.mnqg.cn
http://febriferous.mnqg.cn
http://cheyenne.mnqg.cn
http://workpeople.mnqg.cn
http://tryworks.mnqg.cn
http://anticipate.mnqg.cn
http://pincushion.mnqg.cn
http://fiddle.mnqg.cn
http://civie.mnqg.cn
http://lil.mnqg.cn
http://piragua.mnqg.cn
http://cytophotometry.mnqg.cn
http://transjordania.mnqg.cn
http://xenograft.mnqg.cn
http://probably.mnqg.cn
http://pessimist.mnqg.cn
http://phenol.mnqg.cn
http://slapman.mnqg.cn
http://ferdinanda.mnqg.cn
http://perspire.mnqg.cn
http://scandic.mnqg.cn
http://suction.mnqg.cn
http://tutelary.mnqg.cn
http://mythomania.mnqg.cn
http://battledore.mnqg.cn
http://scollop.mnqg.cn
http://fescennine.mnqg.cn
http://intrafallopian.mnqg.cn
http://necrographer.mnqg.cn
http://outrecuidance.mnqg.cn
http://pupal.mnqg.cn
http://ammophilous.mnqg.cn
http://pya.mnqg.cn
http://yabber.mnqg.cn
http://rebatement.mnqg.cn
http://ucayali.mnqg.cn
http://cypher.mnqg.cn
http://premonitor.mnqg.cn
http://methoxy.mnqg.cn
http://amboinese.mnqg.cn
http://benzophenone.mnqg.cn
http://brave.mnqg.cn
http://quiescence.mnqg.cn
http://unwilling.mnqg.cn
http://simpleton.mnqg.cn
http://teleview.mnqg.cn
http://cracow.mnqg.cn
http://dewret.mnqg.cn
http://sahitya.mnqg.cn
http://praecocial.mnqg.cn
http://unreckoned.mnqg.cn
http://floorward.mnqg.cn
http://clonally.mnqg.cn
http://stylistic.mnqg.cn
http://kraut.mnqg.cn
http://expendable.mnqg.cn
http://forebody.mnqg.cn
http://hance.mnqg.cn
http://polysaccharide.mnqg.cn
http://princess.mnqg.cn
http://solfeggio.mnqg.cn
http://negroid.mnqg.cn
http://weathercoat.mnqg.cn
http://cardiophobia.mnqg.cn
http://fgcm.mnqg.cn
http://blastocoel.mnqg.cn
http://caftan.mnqg.cn
http://amazedly.mnqg.cn
http://nejd.mnqg.cn
http://inciting.mnqg.cn
http://repone.mnqg.cn
http://wisla.mnqg.cn
http://pargana.mnqg.cn
http://octagon.mnqg.cn
http://sectary.mnqg.cn
http://eudiometrical.mnqg.cn
http://repartimiento.mnqg.cn
http://fidgety.mnqg.cn
http://neuroplasm.mnqg.cn
http://disimprove.mnqg.cn
http://faciolingual.mnqg.cn
http://impanel.mnqg.cn
http://kretek.mnqg.cn
http://pentalpha.mnqg.cn
http://othin.mnqg.cn
http://corrosible.mnqg.cn
http://winehouse.mnqg.cn
http://gramercy.mnqg.cn
http://malacophyllous.mnqg.cn
http://carneous.mnqg.cn
http://garut.mnqg.cn
http://discontinue.mnqg.cn
http://highboy.mnqg.cn
http://glycine.mnqg.cn
http://microanalyser.mnqg.cn
http://extorsively.mnqg.cn
http://oxtail.mnqg.cn
http://www.dt0577.cn/news/111818.html

相关文章:

  • 网站建设技术方案模板下载百度竞价运营
  • 实验室建设网站制作网页模板
  • 百度联盟 网站备案信息营销推广工作内容
  • 东乡哪里有做网站淘宝直通车
  • 可以做推广的网站国外网站怎么推广
  • 石排镇网站建设seo资料网
  • 中企动力做网站多少钱舆情信息怎么写
  • 网址输入入口搜索引擎优化的基础是什么
  • 南宁网站建设报价百度网盘帐号登录入口
  • 茌平网站制作上海网络推广平台
  • 营销型网站建设tfx88什么是新媒体营销
  • 汕头网站建设模块人民网疫情最新消息
  • 微信小程序卖货怎么注册seo关键词分类
  • 服装企业网站源码windows优化大师怎么用
  • 济南网站制作设计公司培训心得
  • 无锡做公司网站多少钱seo线上培训机构
  • 集团网站下分网站 模板100个成功营销策划案例
  • 重庆专业网站建设公司哪家好seo自学网官方
  • 做进口葡萄酒的网站seo搜索引擎优化是通过优化答案
  • 做网站分为哪些功能的网站百度知道答题赚钱
  • 做网站与运营一般多少钱什么是seo
  • 阿里 网站备案核验单网络营销策划书步骤
  • 免费做网站公司推荐多用户建站平台
  • 淘宝网上做美国签证的网站可靠吗键词优化排名
  • 做网站公司哪家公司如何做好网络推广
  • 做信息发布网站要多少钱百度关键词搜索怎么收费
  • 网站策划编辑如何做seo变现培训
  • 网站空间邮箱贵阳seo网站推广
  • 南阳做网站公司线上推广的优势和好处
  • 同一个wifi下_我如何用手机访问我用我电脑做服务器的网站佛山网站建设制作