TestPropertySourceAttributes.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:spring4-understanding 作者:
/**
 * Create a new {@code TestPropertySourceAttributes} instance for the
 * supplied {@link TestPropertySource @TestPropertySource} annotation and
 * the {@linkplain Class test class} that declared it, enforcing
 * configuration rules and detecting a default properties file if
 * necessary.
 * @param declaringClass the class that declared {@code @TestPropertySource}
 * @param testPropertySource the annotation from which to retrieve the attributes
 * @since 4.2
 */
TestPropertySourceAttributes(Class<?> declaringClass, TestPropertySource testPropertySource) {
    this(declaringClass, testPropertySource.locations(), testPropertySource.inheritLocations(),
        testPropertySource.properties(), testPropertySource.inheritProperties());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号