目录1.自定义启动监听ApplicationStartedEventListener2.在Application启动类中添加3.在log4j2.XML中使用MDC定义的属性总结项目中有个需求,需要log4j2.xml加载application.yml的属性,折腾了半天,贴代码吧:
If I have a custom class called Tires: #import <Foundation/Foundation.h> @interface Tires : NSObject {