This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 解 json 双引号引用 | |
* @param originString 原始字符串 | |
* @return 真 json 字符串 | |
*/ | |
private static String deEscapeJsonQuote(String originString) { | |
final String tempStr = originString.replaceAll("\"\"", "\""); | |
return tempStr.substring(1, tempStr.length() - 1); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 在一个 bean 被销毁以前对它应用本处理器 | |
* Apply this BeanPostProcessor to the given bean instance before its | |
* destruction, e.g. invoking custom destruction callbacks. | |
* <p>Like DisposableBean's {@code destroy} and a custom destroy method, this | |
* callback will only apply to beans which the container fully manages the | |
* lifecycle for. This is usually the case for singletons and scoped beans. | |
* | |
* @param bean the bean instance to be destroyed | |
* @param beanName the name of the bean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Parse the elements at the root level in the document: | |
* "import", "alias", "bean". | |
* @param root the DOM root element of the document | |
*/ | |
protected void parseBeanDefinitions(Element root, BeanDefinitionParserDelegate delegate) { | |
if (delegate.isDefaultNamespace(root)) { | |
NodeList nl = root.getChildNodes(); | |
for (int i = 0; i < nl.getLength(); i++) { | |
Node node = nl.item(i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private final ThreadLocal<TestContext> testContextHolder = ThreadLocal.withInitial( | |
// Implemented as an anonymous inner class instead of a lambda expression due to a bug | |
// in Eclipse IDE: "The blank final field testContext may not have been initialized" | |
new Supplier<TestContext>() { | |
@Override | |
public TestContext get() { | |
return copyTestContext(TestContextManager.this.testContext); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 地区 | |
locale | |
# 校验时区 | |
date -R |