摘要:
**1. 字面量赋值** 字面量,比如:`int a = 10;`,a 是变量,10 就是字面量。在 xml 配置的 `value="xxx"` 就是给属性赋予了字面量 xxx **2. 空值** 如果要赋空值,正确的做法是在 `` 标签中间,添加上 `` 标签 **3. xml实体** 方式一:转 阅读全文
摘要:
## 通过 setter 注入 添加 Book 类,配置属性 bookName 和 author,添加 setter、getter 方法和 toString() 方法 以下是手动的 set 方式注入和通过构造器注入,接下来来讲一下 spring 怎么做到通过 set 注入的 ![image](htt 阅读全文
摘要:
正在学习 IoC 使用的 jdk 版本为 jdk 17 依赖为: ```xml org.springframework spring-core 6.0.6 org.springframework spring-context 6.0.9 org.junit.jupiter junit-jupiter 阅读全文
摘要:
搜到了相同的问题的解决方案,转一下:https://blog.csdn.net/m0_61350160/article/details/120850564 阅读全文