Results 5 issues of Nan Lei

**7.3.2节** **173页** `NameRepository`的注解层次问题,本身`NameRepository`是定义的仓储类,而不是注解了,下面的层次展示是不是不太准确。 改为下面表述比较好? 调整前: + `NameRepository` + `@StringRepository` + `@Component` 调整后: + `NameRepository` + `@StringRepository` + `@Repository` + `@Component` **181页** `NameRepository`不应该有`@`吧,后面的`Spring@Repository`明显是写错了。 下方的表述中,是不是也有错误,应该是: + `annotationClass`应该是`@StringRepository`(和Debug结果一致) + `metaAnnotations`注解数组仅获取当前注解`@StringRepository`所标注的注解 + `StringRepository`在2.5.6.SEC03中标注`@Repository`后 最下方的代码段,并非**3.0.0.RELEASE**中的实现,应该是**3.2.x**,`AnnotationAttributesReadingVisitor.java`的实现为...

阅读本书,收益颇多,今发现如下不解: 我在新版2.3.2 debug源代码时,发现5.6节113页-115页,使用```HSQLDB```的运行效果和书中不符,为了验证,将版本降至2.0.2,(两个版本都使用了```HikariCP```作为连接池)依赖为: ```xml org.hsqldb hsqldb org.springframework.boot spring-boot-starter-jdbc 2.0.2.RELEASE ``` 在```DataSourceAutoConfiguration.EmbeddedDatabaseCondition```的```getMatchOutcome```方法中,执行到 ```java if (anyMatches(context, metadata, this.pooledCondition)) { return ConditionOutcome .noMatch(message.foundExactly("supported pooled data source")); } ``` 就返回了(两版本相同),而没有继续往下匹配 ```java EmbeddedDatabaseType type =...

**1. 74页,图8-1中** 右下方`String "abcdf"` -> `"abcdef"` **2. 80页,JDK7段表述** 其使用`new String`创建了一个新字符串,但前面JDK6也是同样,不同的是构造方法的处理 (此处没去安装低版本JDK验证,只是看书中表述) **3. 81页,代码中** 第三个注释,使用`replace` -> `replaceAll` **4. 86页,代码上方** 它也是通过`StringBuilde` -> `StringBuilder` **5. 99页,代码上方** 在Java中要添加`/` -> `\` **6. 113页,8.12首行表述** 在运行期向`字符串`中动态加入 ->...

If this pull request (PR) pertains to **Chinese-to-English translation**, please confirm that you have read the contribution guidelines and complete the checklist below: - [ ] This PR represents the...

4.1数组 > 4.1.1数组常用操作 > 7.扩容数组 ```python def extend(nums: list[int], enlarge: int) -> list[int]: """扩展数组长度""" # 初始化一个扩展长度后的数组 res = [0] * (len(nums) + enlarge) # 将原数组中的所有元素复制到新数组 for i in range(len(nums)): res[i]...