码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Springboot 开发env


    env的是:配置的树的属性源:
    ConfigTreePropertySource: 配置树的性的属性源文件:
    EnvironmentPostProcessor:环境配置后置处理器
    EnvironmentPostProcessorApplicationListener: 处理环境的ApplcationListerner:
    EnvironmentPostProcessorsFactory:环境处理工厂:
    OriginTrackedMapPropertySource:原先的map属性源。
    OriginTrackedPropertiesLoader:原先属性的加载器:
    OriginTrackedYamlLoader:原先的TrackerYaml加载器:
    PropertiesPropertySourceLoader:xml属性文件源文件加载器:
    PropertySourceLoader:属性源文件加载器:
    PropertySourceRuntimeHints: 属性源文件润赢得点击实现了RuntimeHintsRegistrar:
    RandomValuePropertySource:随机数值源文件:
    RandomValuePropertySourceEnvironmentPostProcessor:随机数值源文件处理器。
    ReflectionEnvironmentPostProcessorsFactory:反射环境的后置处理器工厂:SpringApplicationJsonEnvironmentPostProcessor:Spring 应用程序JSON环境配置处理器:
    其中yaml属性文件:处理器:

    public class YamlPropertySourceLoader implements PropertySourceLoader {
    
    	@Override
    	public String[] getFileExtensions() {
    		return new String[] { "yml", "yaml" };
    	}
    
    	@Override
    	public List<PropertySource<?>> load(String name, Resource resource) throws IOException {
    		if (!ClassUtils.isPresent("org.yaml.snakeyaml.Yaml", getClass().getClassLoader())) {
    			throw new IllegalStateException(
    					"Attempted to load " + name + " but snakeyaml was not found on the classpath");
    		}
    		List<Map<String, Object>> loaded = new OriginTrackedYamlLoader(resource).load();
    		if (loaded.isEmpty()) {
    			return Collections.emptyList();
    		}
    		List<PropertySource<?>> propertySources = new ArrayList<>(loaded.size());
    		for (int i = 0; i < loaded.size(); i++) {
    			String documentNumber = (loaded.size() != 1) ? " (document #" + i + ")" : "";
    			propertySources.add(new OriginTrackedMapPropertySource(name + documentNumber,
    					Collections.unmodifiableMap(loaded.get(i)), true));
    		}
    		return propertySources;
    	}
    
    }
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
  • 相关阅读:
    Mysql卸载
    webRTC demo
    牛客网最新Java面试通关八股文手册,花点耐心每天刷上10道题,挑战一下年薪50W!
    财务工作者,是否需要学习 Python?
    《苍穹外卖》Day08部分知识点记录
    Netty 线程工作机制—— NioEventLoop
    将 JavaScript 源文件的全部内容包装在立即调用的函数中的原因是什么?
    计算机操作系统习题集锦(持续鸽新)
    贝锐向日葵亮相云栖大会,携手无影推出全新“云桌面”功能
    如何理解【点击】和【滑动】两个常用的交互手势?
  • 原文地址:https://blog.csdn.net/xiamaocheng/article/details/126823914
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号