Fork me on GitHub
摘要: 代码结构: package com.java.spring; /** * 自定义InitializingBean * 作用:做初始化操作 */ public interface IInitializingBean { void afterPropertiesSet() throws Exceptio 阅读全文
posted @ 2021-05-01 15:59 小传风 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 代码结构: 作用:将bean的名字传给实现此接口类 package com.java.spring; /** * 自定义BeanNameAware接口 * 作用:将bean的名字传给实现类 */ public interface IBeanNameAware { void setBeanName(S 阅读全文
posted @ 2021-05-01 15:48 小传风 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 代码结构: 接上篇。 package com.java.spring; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Retent 阅读全文
posted @ 2021-05-01 15:27 小传风 阅读(93) 评论(0) 推荐(0) 编辑