File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,17 +164,17 @@ public class MonitorConfigurationProperties {
164164
165165现在,appId 属性是必填项,当我们不去配置时就会启动失败:
166166
167- <img width =" " src =" http ://spring-media.knowledge. ituknown.cn/ConfigurationProperties/configuration-properties-validated.png" alt =" configuration-properties-validated.png " >
167+ <img width =" " src =" https ://ituknown.cn/spring-media /ConfigurationProperties/configuration-properties-validated.png" alt =" configuration-properties-validated.png " >
168168
169169另外,有些博客会告诉你当编写一个配置类时记得同时在 MATE-INF 目录下创建一个 spring-configuration-metadata.json 文件,并在该文件中以 JSON 的格式编写属性配置信息(如属性类型、释义以及默认值),这样当你编辑配置时就会有属性提示。
170170
171171实际上并不需要,因为这些事情 Spring Boot 会自动当你完成,当你编译或构建项目时会自动在 classes 文件下生成该文件。示例如下:
172172
173- <img width =" " src =" http ://spring-media.knowledge. ituknown.cn/ConfigurationProperties/configuration-properties-metadata-json.png" alt =" configuration-properties-metadata-json.png " >
173+ <img width =" " src =" https ://ituknown.cn/spring-media /ConfigurationProperties/configuration-properties-metadata-json.png" alt =" configuration-properties-metadata-json.png " >
174174
175175之后编写配置时对应的属性提示就出来了:
176176
177- <img width =" " src =" http ://spring-media.knowledge. ituknown.cn/ConfigurationProperties/configuration-properties-tips.png" alt =" configuration-properties-tips.png " >
177+ <img width =" " src =" https ://ituknown.cn/spring-media /ConfigurationProperties/configuration-properties-tips.png" alt =" configuration-properties-tips.png " >
178178
179179--
180180
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class EventObject implements java.io.Serializable {
4747
4848而在 Spring 框架中官方人员对该类做了进一步扩展,看下类的继承关系图:
4949
50- ![ EventObject.png] ( http ://spring-media.knowledge. ituknown.cn/EventListener/EventObject.png)
50+ ![ EventObject.png] ( https ://ituknown.cn/spring-media /EventListener/EventObject.png)
5151
5252` ApplicationEvent ` 抽象类是 Spring 对 ` java.util.EventObject ` 做的初步扩展,该类没有其他实际意义,仅仅只是在其基础上增加了事件创建时间属性:
5353
You can’t perform that action at this time.
0 commit comments