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
| # LLM 代码修改传递指令模板 | |
| > **设计理念**:像对待轮班工程师一样对待 LLM —— 假设下一个 LLM 对项目一无所知,需要完整、精确、可验证的交接文档。 | |
| --- | |
| ## 📋 给第一个 LLM(规划者)的指令 | |
| 你的任务是为下一个 LLM 创建一份**完整、精确、可执行**的代码修改指令文档。这份文档必须让一个对项目完全陌生的 LLM 能够准确复现你的工作。 |
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 |