package com.fm.property.source;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
/**
* @author 未来码匠
*/
@Component
public class OutputPropsRunner implements CommandLineRunner {
private static final Logger LOGGER = LoggerFactory.getLogger(OutputPropsRunner.class);
@Autowired
private ReadByPropertySourceAndValueYaml readByPropertySourceAndValueYaml;
@Autowired
private ReadByPropertySourceAndValueYml readByPropertySourceAndValueYml;
@Autowired
private ReadByPropertySourceAndValueProperties readByPropertySourceAndValueProperties;
@Autowired
private ReadByPropertySourceAndValueXml readByPropertySourceAndValueXml;
@Autowired
private ReadByPropertySourceAndValueManyYml readByPropertySourceAndValueManyYml;
@Autowired
private ReadByPropertySourceAndConfYml readByPropertySourceAndConfYml;
@Autowired
private ReadByPropertySourceAndConfYaml readByPropertySourceAndConfYaml;
@Autowired
private ReadByPropertySourceAndConfProperties readByPropertySourceAndConfProperties;
@Autowired
private ReadByPropertySourceAndConfXml readByPropertySourceAndConfXml;
@Autowired
private ReadByPropertySourceAndConfManyYml readByPropertySourceAndConfManyYml;
@Override
public void run(String... args){
LOGGER.info(readByPropertySourceAndValueYaml.toString());
LOGGER.info(readByPropertySourceAndValueYml.toString());
LOGGER.info(readByPropertySourceAndValueProperties.toString());
LOGGER.info(readByPropertySourceAndValueXml.toString());
LOGGER.info(readByPropertySourceAndConfYml.toString());
LOGGER.info(readByPropertySourceAndConfYaml.toString());
LOGGER.info(readByPropertySourceAndConfProperties.toString());
LOGGER.info(readByPropertySourceAndConfXml.toString());
LOGGER.info(readByPropertySourceAndValueManyYml.toString());
LOGGER.info(readByPropertySourceAndConfManyYml.toString());
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Spring Boot 技术知识点:如何理解@PropertySource注解
共115个文件
xml:59个
class:17个
java:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 122 浏览量
2022-06-20
13:56:28
上传
评论
收藏 138KB ZIP 举报
温馨提示
Spring Boot 技术知识点:如何理解@PropertySource注解
资源详情
资源评论
资源推荐
收起资源包目录
Spring Boot 技术知识点:如何理解@PropertySource注解 (115个子文件)
ReadByPropertySourceAndConfManyYml.class 3KB
OutputPropsRunner.class 3KB
YamlPropertySourceFactory.class 3KB
YmlPropertySourceFactory.class 2KB
YmlPropertyResourceFactory1.class 2KB
ReadByPropertySourceAndConfProperties.class 2KB
ReadByPropertySourceAndConfYaml.class 2KB
ReadByPropertySourceAndConfYml.class 2KB
ReadByPropertySourceAndConfXml.class 2KB
YamlPropertySourceFactory1.class 2KB
ReadByPropertySourceAndValueManyYml.class 1KB
PropertySourceApplicationTests.class 1KB
ReadByPropertySourceAndValueProperties.class 1KB
ReadByPropertySourceAndValueYaml.class 1KB
ReadByPropertySourceAndValueYml.class 1KB
ReadByPropertySourceAndValueXml.class 1KB
PropertySourceApplication.class 775B
mvnw.cmd 7KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.gitignore 395B
.gitignore 176B
property-source.iml 6KB
maven-wrapper.jar 57KB
OutputPropsRunner.java 2KB
YamlPropertySourceFactory.java 2KB
YmlPropertySourceFactory.java 2KB
YamlPropertySourceFactory1.java 1KB
YmlPropertyResourceFactory1.java 1KB
ReadByPropertySourceAndValueManyYml.java 875B
ReadByPropertySourceAndConfManyYml.java 824B
ReadByPropertySourceAndConfProperties.java 721B
ReadByPropertySourceAndValueProperties.java 704B
ReadByPropertySourceAndConfYaml.java 703B
ReadByPropertySourceAndConfYml.java 700B
ReadByPropertySourceAndValueYaml.java 685B
ReadByPropertySourceAndValueYml.java 683B
ReadByPropertySourceAndConfXml.java 658B
ReadByPropertySourceAndValueXml.java 641B
PropertySourceApplicationTests.java 560B
PropertySourceApplication.java 377B
spring-configuration-metadata.json 853B
HELP.md 430B
mvnw 10KB
maven-wrapper.properties 233B
demo.properties 28B
demo.properties 28B
uiDesigner.xml 9KB
workspace.xml 6KB
pom.xml 2KB
Project_Default.xml 1KB
jarRepositories.xml 851B
compiler.xml 816B
Maven__org_springframework_boot_spring_boot_configuration_processor_2_7_0.xml 736B
Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_7_0.xml 701B
Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml 688B
Maven__org_springframework_boot_spring_boot_starter_logging_2_7_0.xml 680B
Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_0.xml 666B
Maven__org_springframework_boot_spring_boot_starter_test_2_7_0.xml 659B
Maven__org_springframework_boot_spring_boot_starter_2_7_0.xml 624B
Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml 621B
Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml 621B
Maven__org_junit_platform_junit_platform_commons_1_8_2.xml 621B
Maven__org_junit_platform_junit_platform_engine_1_8_2.xml 614B
Maven__org_junit_jupiter_junit_jupiter_params_5_8_2.xml 603B
Maven__org_springframework_boot_spring_boot_test_2_7_0.xml 603B
Maven__org_junit_jupiter_junit_jupiter_engine_5_8_2.xml 603B
Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml 599B
Maven__org_springframework_spring_expression_5_3_20.xml 597B
Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml 596B
Maven__org_mockito_mockito_junit_jupiter_4_5_1.xml 586B
Maven__org_junit_jupiter_junit_jupiter_api_5_8_2.xml 582B
Maven__org_springframework_spring_context_5_3_20.xml 576B
Maven__net_bytebuddy_byte_buddy_agent_1_12_10.xml 573B
Maven__org_springframework_boot_spring_boot_2_7_0.xml 568B
Maven__ch_qos_logback_logback_classic_1_2_11.xml 563B
Maven__org_springframework_spring_beans_5_3_20.xml 562B
Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml 561B
Maven__org_apiguardian_apiguardian_api_1_1_2.xml 560B
Maven__org_springframework_spring_core_5_3_20.xml 555B
Maven__org_springframework_spring_test_5_3_20.xml 555B
Maven__org_junit_jupiter_junit_jupiter_5_8_2.xml 554B
Maven__org_springframework_spring_aop_5_3_20.xml 548B
Maven__org_springframework_spring_jcl_5_3_20.xml 548B
Maven__net_minidev_accessors_smart_2_4_8.xml 544B
Maven__ch_qos_logback_logback_core_1_2_11.xml 542B
Maven__com_jayway_jsonpath_json_path_2_7_0.xml 534B
Maven__net_bytebuddy_byte_buddy_1_12_10.xml 531B
Maven__org_assertj_assertj_core_3_22_0.xml 530B
Maven__org_skyscreamer_jsonassert_1_5_0.xml 525B
Maven__org_mockito_mockito_core_4_5_1.xml 523B
Maven__org_xmlunit_xmlunit_core_2_9_0.xml 523B
Maven__org_slf4j_jul_to_slf4j_1_7_36.xml 522B
Maven__org_opentest4j_opentest4j_1_2_0.xml 521B
Maven__org_projectlombok_lombok_1_18_24.xml 519B
Maven__net_minidev_json_smart_2_4_8.xml 509B
Maven__org_slf4j_slf4j_api_1_7_36.xml 501B
Maven__org_objenesis_objenesis_3_2.xml 496B
Maven__org_hamcrest_hamcrest_2_2.xml 485B
共 115 条
- 1
- 2
星际编程喵
- 粉丝: 4391
- 资源: 96
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0