博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
摘抄spring源码中的Java工具类的代码片段
阅读量:4135 次
发布时间:2019-05-25

本文共 688 字,大约阅读时间需要 2 分钟。

/** * Load a {@link ClassPathResource} qualified by the simple name of clazz, * and relative to the package for clazz. * 

Example: given a clazz 'com.foo.BarTests' and a resourceSuffix of 'context.xml', * this method will return a ClassPathResource representing com/foo/BarTests-context.xml *

Intended for use loading context configuration XML files within JUnit tests. */public static ClassPathResource qualifiedResource(Class

clazz, String resourceSuffix) { return new ClassPathResource(String.format("%s-%s", clazz.getSimpleName(), resourceSuffix), clazz);}

private final Set
singletonsCurrentlyInCreation = Collections.newSetFromMap(new ConcurrentHashMap<>(16));

 

转载地址:http://zgivi.baihongyu.com/

你可能感兴趣的文章
Qt文件夹选择对话框
查看>>
1062 Talent and Virtue (25 分)
查看>>
1061 Dating (20 分)
查看>>
1060 Are They Equal (25 分)
查看>>
83. Remove Duplicates from Sorted List(easy)
查看>>
88. Merge Sorted Array(easy)
查看>>
leetcode刷题191 位1的个数 Number of 1 Bits(简单) Python Java
查看>>
leetcode刷题198 打家劫舍 House Robber(简单) Python Java
查看>>
NG深度学习第一门课作业2 通过一个隐藏层的神经网络来做平面数据的分类
查看>>
leetcode刷题234 回文链表 Palindrome Linked List(简单) Python Java
查看>>
NG深度学习第二门课作业1-1 深度学习的实践
查看>>
Ubuntu下安装Qt
查看>>
Qt札记
查看>>
我的vimrc和gvimrc配置
查看>>
hdu 4280
查看>>
禁止使用类的copy构造函数和赋值操作符
查看>>
C++学习路线
查看>>
私有构造函数
查看>>
组队总结
查看>>
TitledBorder 设置JPanel边框
查看>>