当前位置:   article > 正文

spring boot和spring cloud项目中配置文件application和bootstrap加载顺序

spring boot和spring cloud项目中配置文件application和bootstrap加载顺序

在前面的文章基础上

https://blog.csdn.net/zlpzlpzyd/article/details/136060312

日志配置

logback-spring.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration scan="true" scanPeriod="10000000 seconds" debug="false">
  3. <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
  4. <!-- 定义日志的根目录 -->
  5. <!-- 控制台输出 -->
  6. <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  7. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  8. <!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
  9. <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} [%thread] %logger{50} %caller{1} - %msg%n</pattern>
  10. </encoder>
  11. </appender>
  12. <!--
  13. logger主要用于存放日志对象,也可以定义日志类型、级别
  14. name:表示匹配的logger类型前缀,也就是包的前半部分
  15. level:要记录的日志级别,包括 TRACE < DEBUG < INFO < WARN < ERROR
  16. additivity:作用在于children-logger是否使用 rootLogger配置的appender进行输出,
  17. false:表示只用当前logger的appender-ref,true:
  18. 表示当前logger的appender-ref和rootLogger的appender-ref都有效
  19. -->
  20. <!-- logger Spring framework -->
  21. <!--<logger name="org.springframework" level="debug"></logger>-->
  22. <logger name="org.springframework.boot.context.config" level="trace"></logger>
  23. <logger name="feign" level="debug"></logger>
  24. <!--<logger name="com.netflix" level="debug"></logger>-->
  25. <!--<logger name="rx" level="debug"></logger>-->
  26. <logger name="com.alibaba" level="debug"></logger>
  27. <!--
  28. root与logger是父子关系,没有特别定义则默认为root,任何一个类只会和一个logger对应,
  29. 要么是定义的logger,要么是root,判断的关键在于找到这个logger,然后判断这个logger的appender和level。
  30. -->
  31. <root level="INFO">
  32. <appender-ref ref="STDOUT"/>
  33. </root>
  34. </configuration>

如果引用了 spring cloud 的组件且有 bootstrap 和 application 相关文件,启动日志如下

  1. 2024-02-07 09:26:45.355 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  2. - Skipped missing config 'file:./config/bootstrap.properties' (file:./config/bootstrap.properties)
  3. 2024-02-07 09:26:45.356 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  4. - Skipped missing config 'file:./config/bootstrap.xml' (file:./config/bootstrap.xml)
  5. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  6. - Skipped missing config 'file:./config/bootstrap.yml' (file:./config/bootstrap.yml)
  7. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  8. - Skipped missing config 'file:./config/bootstrap.yaml' (file:./config/bootstrap.yaml)
  9. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  10. - Skipped missing config 'file:./bootstrap.properties' (file:./bootstrap.properties)
  11. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  12. - Skipped missing config 'file:./bootstrap.xml' (file:./bootstrap.xml)
  13. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  14. - Skipped missing config 'file:./bootstrap.yml' (file:./bootstrap.yml)
  15. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  16. - Skipped missing config 'file:./bootstrap.yaml' (file:./bootstrap.yaml)
  17. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  18. - Skipped missing config classpath:/config/bootstrap.properties
  19. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  20. - Skipped missing config classpath:/config/bootstrap.xml
  21. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  22. - Skipped missing config classpath:/config/bootstrap.yml
  23. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  24. - Skipped missing config classpath:/config/bootstrap.yaml
  25. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  26. - Skipped missing config classpath:/bootstrap.properties
  27. 2024-02-07 09:26:45.357 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  28. - Skipped missing config classpath:/bootstrap.xml
  29. 2024-02-07 09:26:45.358 DEBUG 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:222)
  30. - Loaded config file 'file:/E:/personal/feign-example/provider/target/classes/bootstrap.yml' (classpath:/bootstrap.yml)
  31. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  32. - Skipped missing config classpath:/bootstrap.yaml
  33. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  34. - Skipped missing config 'file:./config/bootstrap-default.properties' (file:./config/bootstrap-default.properties) for profile default
  35. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  36. - Skipped missing config 'file:./config/bootstrap-default.properties' (file:./config/bootstrap-default.properties) for profile default
  37. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  38. - Skipped missing config 'file:./config/bootstrap.properties' (file:./config/bootstrap.properties) for profile default
  39. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  40. - Skipped missing config 'file:./config/bootstrap-default.xml' (file:./config/bootstrap-default.xml) for profile default
  41. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  42. - Skipped missing config 'file:./config/bootstrap-default.xml' (file:./config/bootstrap-default.xml) for profile default
  43. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  44. - Skipped missing config 'file:./config/bootstrap.xml' (file:./config/bootstrap.xml) for profile default
  45. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  46. - Skipped missing config 'file:./config/bootstrap-default.yml' (file:./config/bootstrap-default.yml) for profile default
  47. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  48. - Skipped missing config 'file:./config/bootstrap-default.yml' (file:./config/bootstrap-default.yml) for profile default
  49. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  50. - Skipped missing config 'file:./config/bootstrap.yml' (file:./config/bootstrap.yml) for profile default
  51. 2024-02-07 09:26:45.358 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  52. - Skipped missing config 'file:./config/bootstrap-default.yaml' (file:./config/bootstrap-default.yaml) for profile default
  53. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  54. - Skipped missing config 'file:./config/bootstrap-default.yaml' (file:./config/bootstrap-default.yaml) for profile default
  55. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  56. - Skipped missing config 'file:./config/bootstrap.yaml' (file:./config/bootstrap.yaml) for profile default
  57. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  58. - Skipped missing config 'file:./bootstrap-default.properties' (file:./bootstrap-default.properties) for profile default
  59. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  60. - Skipped missing config 'file:./bootstrap-default.properties' (file:./bootstrap-default.properties) for profile default
  61. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  62. - Skipped missing config 'file:./bootstrap.properties' (file:./bootstrap.properties) for profile default
  63. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  64. - Skipped missing config 'file:./bootstrap-default.xml' (file:./bootstrap-default.xml) for profile default
  65. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  66. - Skipped missing config 'file:./bootstrap-default.xml' (file:./bootstrap-default.xml) for profile default
  67. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  68. - Skipped missing config 'file:./bootstrap.xml' (file:./bootstrap.xml) for profile default
  69. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  70. - Skipped missing config 'file:./bootstrap-default.yml' (file:./bootstrap-default.yml) for profile default
  71. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  72. - Skipped missing config 'file:./bootstrap-default.yml' (file:./bootstrap-default.yml) for profile default
  73. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  74. - Skipped missing config 'file:./bootstrap.yml' (file:./bootstrap.yml) for profile default
  75. 2024-02-07 09:26:45.359 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  76. - Skipped missing config 'file:./bootstrap-default.yaml' (file:./bootstrap-default.yaml) for profile default
  77. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  78. - Skipped missing config 'file:./bootstrap-default.yaml' (file:./bootstrap-default.yaml) for profile default
  79. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  80. - Skipped missing config 'file:./bootstrap.yaml' (file:./bootstrap.yaml) for profile default
  81. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  82. - Skipped missing config classpath:/config/bootstrap-default.properties for profile default
  83. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  84. - Skipped missing config classpath:/config/bootstrap-default.properties for profile default
  85. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  86. - Skipped missing config classpath:/config/bootstrap.properties for profile default
  87. 2024-02-07 09:26:45.360 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  88. - Skipped missing config classpath:/config/bootstrap-default.xml for profile default
  89. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  90. - Skipped missing config classpath:/config/bootstrap-default.xml for profile default
  91. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  92. - Skipped missing config classpath:/config/bootstrap.xml for profile default
  93. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  94. - Skipped missing config classpath:/config/bootstrap-default.yml for profile default
  95. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  96. - Skipped missing config classpath:/config/bootstrap-default.yml for profile default
  97. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  98. - Skipped missing config classpath:/config/bootstrap.yml for profile default
  99. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  100. - Skipped missing config classpath:/config/bootstrap-default.yaml for profile default
  101. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  102. - Skipped missing config classpath:/config/bootstrap-default.yaml for profile default
  103. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  104. - Skipped missing config classpath:/config/bootstrap.yaml for profile default
  105. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  106. - Skipped missing config classpath:/bootstrap-default.properties for profile default
  107. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  108. - Skipped missing config classpath:/bootstrap-default.properties for profile default
  109. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  110. - Skipped missing config classpath:/bootstrap.properties for profile default
  111. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  112. - Skipped missing config classpath:/bootstrap-default.xml for profile default
  113. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  114. - Skipped missing config classpath:/bootstrap-default.xml for profile default
  115. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  116. - Skipped missing config classpath:/bootstrap.xml for profile default
  117. 2024-02-07 09:26:45.361 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  118. - Skipped missing config classpath:/bootstrap-default.yml for profile default
  119. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  120. - Skipped missing config classpath:/bootstrap-default.yml for profile default
  121. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  122. - Skipped missing config classpath:/bootstrap-default.yaml for profile default
  123. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  124. - Skipped missing config classpath:/bootstrap-default.yaml for profile default
  125. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  126. - Skipped missing config classpath:/bootstrap.yaml for profile default
  127. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  128. - Skipped missing config 'file:./config/bootstrap.properties' (file:./config/bootstrap.properties)
  129. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  130. - Skipped missing config 'file:./config/bootstrap.xml' (file:./config/bootstrap.xml)
  131. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  132. - Skipped missing config 'file:./config/bootstrap.yml' (file:./config/bootstrap.yml)
  133. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  134. - Skipped missing config 'file:./config/bootstrap.yaml' (file:./config/bootstrap.yaml)
  135. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  136. - Skipped missing config 'file:./bootstrap.properties' (file:./bootstrap.properties)
  137. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  138. - Skipped missing config 'file:./bootstrap.xml' (file:./bootstrap.xml)
  139. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  140. - Skipped missing config 'file:./bootstrap.yml' (file:./bootstrap.yml)
  141. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  142. - Skipped missing config 'file:./bootstrap.yaml' (file:./bootstrap.yaml)
  143. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  144. - Skipped missing config classpath:/config/bootstrap.properties
  145. 2024-02-07 09:26:45.362 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  146. - Skipped missing config classpath:/config/bootstrap.xml
  147. 2024-02-07 09:26:45.363 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  148. - Skipped missing config classpath:/config/bootstrap.yml
  149. 2024-02-07 09:26:45.363 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  150. - Skipped missing config classpath:/config/bootstrap.yaml
  151. 2024-02-07 09:26:45.363 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  152. - Skipped missing config classpath:/bootstrap.properties
  153. 2024-02-07 09:26:45.363 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  154. - Skipped missing config classpath:/bootstrap.xml
  155. 2024-02-07 09:26:45.363 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  156. - Skipped missing config classpath:/bootstrap.yaml
  157. . ____ _ __ _ _
  158. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
  159. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  160. \\/ ___)| |_)| | | | | || (_| | ) ) ) )
  161. ' |____| .__|_| |_|_| |_\__, | / / / /
  162. =========|_|==============|___/=/_/_/_/
  163. :: Spring Boot :: (v2.3.12.RELEASE)
  164. 2024-02-07 09:26:46.886 INFO 11872 [main] c.e.feign.provider.FeignExampleProviderApplication Caller+0 at org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:648)
  165. - No active profile set, falling back to default profiles: default
  166. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  167. - Skipped missing config 'file:./config/application.properties' (file:./config/application.properties)
  168. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  169. - Skipped missing config 'file:./config/application.xml' (file:./config/application.xml)
  170. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  171. - Skipped missing config 'file:./config/application.yml' (file:./config/application.yml)
  172. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  173. - Skipped missing config 'file:./config/application.yaml' (file:./config/application.yaml)
  174. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  175. - Skipped missing config 'file:./application.properties' (file:./application.properties)
  176. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  177. - Skipped missing config 'file:./application.xml' (file:./application.xml)
  178. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  179. - Skipped missing config 'file:./application.yml' (file:./application.yml)
  180. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  181. - Skipped missing config 'file:./application.yaml' (file:./application.yaml)
  182. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  183. - Skipped missing config classpath:/config/application.properties
  184. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  185. - Skipped missing config classpath:/config/application.xml
  186. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  187. - Skipped missing config classpath:/config/application.yml
  188. 2024-02-07 09:26:46.893 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  189. - Skipped missing config classpath:/config/application.yaml
  190. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  191. - Skipped unloaded config 'file:/E:/personal/feign-example/provider/target/classes/application.properties' (classpath:/application.properties)
  192. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  193. - Skipped missing config classpath:/application.xml
  194. 2024-02-07 09:26:46.894 DEBUG 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:222)
  195. - Loaded config file 'file:/E:/personal/feign-example/provider/target/classes/application.yml' (classpath:/application.yml)
  196. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  197. - Skipped missing config classpath:/application.yaml
  198. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  199. - Skipped missing config 'file:./config/application-default.properties' (file:./config/application-default.properties) for profile default
  200. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  201. - Skipped missing config 'file:./config/application-default.properties' (file:./config/application-default.properties) for profile default
  202. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  203. - Skipped missing config 'file:./config/application.properties' (file:./config/application.properties) for profile default
  204. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  205. - Skipped missing config 'file:./config/application-default.xml' (file:./config/application-default.xml) for profile default
  206. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  207. - Skipped missing config 'file:./config/application-default.xml' (file:./config/application-default.xml) for profile default
  208. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  209. - Skipped missing config 'file:./config/application.xml' (file:./config/application.xml) for profile default
  210. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  211. - Skipped missing config 'file:./config/application-default.yml' (file:./config/application-default.yml) for profile default
  212. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  213. - Skipped missing config 'file:./config/application-default.yml' (file:./config/application-default.yml) for profile default
  214. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  215. - Skipped missing config 'file:./config/application.yml' (file:./config/application.yml) for profile default
  216. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  217. - Skipped missing config 'file:./config/application-default.yaml' (file:./config/application-default.yaml) for profile default
  218. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  219. - Skipped missing config 'file:./config/application-default.yaml' (file:./config/application-default.yaml) for profile default
  220. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  221. - Skipped missing config 'file:./config/application.yaml' (file:./config/application.yaml) for profile default
  222. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  223. - Skipped missing config 'file:./application-default.properties' (file:./application-default.properties) for profile default
  224. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  225. - Skipped missing config 'file:./application-default.properties' (file:./application-default.properties) for profile default
  226. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  227. - Skipped missing config 'file:./application.properties' (file:./application.properties) for profile default
  228. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  229. - Skipped missing config 'file:./application-default.xml' (file:./application-default.xml) for profile default
  230. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  231. - Skipped missing config 'file:./application-default.xml' (file:./application-default.xml) for profile default
  232. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  233. - Skipped missing config 'file:./application.xml' (file:./application.xml) for profile default
  234. 2024-02-07 09:26:46.894 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  235. - Skipped missing config 'file:./application-default.yml' (file:./application-default.yml) for profile default
  236. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  237. - Skipped missing config 'file:./application-default.yml' (file:./application-default.yml) for profile default
  238. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  239. - Skipped missing config 'file:./application.yml' (file:./application.yml) for profile default
  240. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  241. - Skipped missing config 'file:./application-default.yaml' (file:./application-default.yaml) for profile default
  242. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  243. - Skipped missing config 'file:./application-default.yaml' (file:./application-default.yaml) for profile default
  244. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  245. - Skipped missing config 'file:./application.yaml' (file:./application.yaml) for profile default
  246. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  247. - Skipped missing config classpath:/config/application-default.properties for profile default
  248. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  249. - Skipped missing config classpath:/config/application-default.properties for profile default
  250. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  251. - Skipped missing config classpath:/config/application.properties for profile default
  252. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  253. - Skipped missing config classpath:/config/application-default.xml for profile default
  254. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  255. - Skipped missing config classpath:/config/application-default.xml for profile default
  256. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  257. - Skipped missing config classpath:/config/application.xml for profile default
  258. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  259. - Skipped missing config classpath:/config/application-default.yml for profile default
  260. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  261. - Skipped missing config classpath:/config/application-default.yml for profile default
  262. 2024-02-07 09:26:46.895 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  263. - Skipped missing config classpath:/config/application.yml for profile default
  264. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  265. - Skipped missing config classpath:/config/application-default.yaml for profile default
  266. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  267. - Skipped missing config classpath:/config/application-default.yaml for profile default
  268. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  269. - Skipped missing config classpath:/config/application.yaml for profile default
  270. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  271. - Skipped missing config classpath:/application-default.properties for profile default
  272. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  273. - Skipped missing config classpath:/application-default.properties for profile default
  274. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  275. - Skipped unloaded config 'file:/E:/personal/feign-example/provider/target/classes/application.properties' (classpath:/application.properties) for profile default
  276. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  277. - Skipped missing config classpath:/application-default.xml for profile default
  278. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  279. - Skipped missing config classpath:/application-default.xml for profile default
  280. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  281. - Skipped missing config classpath:/application.xml for profile default
  282. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  283. - Skipped missing config classpath:/application-default.yml for profile default
  284. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  285. - Skipped missing config classpath:/application-default.yml for profile default
  286. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  287. - Skipped missing config classpath:/application-default.yaml for profile default
  288. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  289. - Skipped missing config classpath:/application-default.yaml for profile default
  290. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  291. - Skipped missing config classpath:/application.yaml for profile default
  292. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  293. - Skipped missing config 'file:./config/application.properties' (file:./config/application.properties)
  294. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  295. - Skipped missing config 'file:./config/application.xml' (file:./config/application.xml)
  296. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  297. - Skipped missing config 'file:./config/application.yml' (file:./config/application.yml)
  298. 2024-02-07 09:26:46.896 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  299. - Skipped missing config 'file:./config/application.yaml' (file:./config/application.yaml)
  300. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  301. - Skipped missing config 'file:./application.properties' (file:./application.properties)
  302. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  303. - Skipped missing config 'file:./application.xml' (file:./application.xml)
  304. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  305. - Skipped missing config 'file:./application.yml' (file:./application.yml)
  306. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  307. - Skipped missing config 'file:./application.yaml' (file:./application.yaml)
  308. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  309. - Skipped missing config classpath:/config/application.properties
  310. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  311. - Skipped missing config classpath:/config/application.xml
  312. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  313. - Skipped missing config classpath:/config/application.yml
  314. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  315. - Skipped missing config classpath:/config/application.yaml
  316. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  317. - Skipped unloaded config 'file:/E:/personal/feign-example/provider/target/classes/application.properties' (classpath:/application.properties)
  318. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  319. - Skipped missing config classpath:/application.xml
  320. 2024-02-07 09:26:46.897 TRACE 11872 [main] o.s.b.context.config.ConfigFileApplicationListener Caller+0 at org.springframework.boot.logging.DeferredLog.logTo(DeferredLog.java:219)
  321. - Skipped missing config classpath:/application.yaml

如果 bootstrap 相关文件存在,先加载,然后再加载 application 相关文件。对应引用了 spring cloud 组件。

如果 bootstrap 相关文件不存在,加载 application 相关文件。对应未引用 spring cloud 组件。

不过在启动过程中在扫描 classpath 下如果存在接口 ApplicationListener 的实现类,则会进行排序处理。

最终相关的配置内容加载到 AbstractApplicationContext 中的变量 environment 中进行全局配置处理。

如果同一个文件名有不同的后缀,但是配置值一致加载顺序如何?

ConfigFileApplicationListener 中逻辑如下

其中,变量值 propertySourceLoaders 通过 SpringFactoriesLoader 加载 classpath 下 META-INF/spring.factories 中 org.springframework.boot.env.PropertySourceLoader 对应的类

具体有 PropertiesPropertySourceLoader 和 YamlPropertySourceLoader。

PropertiesPropertySourceLoader 用于加载后缀为 .properties 的文件。

YamlPropertySourceLoader 用于加载后缀为 .yml 或者 .yaml 的文件。

如果对应的配置在后缀为 properties 和 yml 的文件中都存在,则 properties 优先。

ConfigFileApplicationListener 按顺序读取自动配置,在进行遍历时按序遍历,所以 properties 优先。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/68591
推荐阅读
相关标签
  

闽ICP备14008679号