摘要:
自定义类似@Required功能的注解 我们知道被@Required标注的方法是必须有值的,否则报异常,我们如何自定义了 这种非常简单,只需要向RequiredAnnotationBeanPostProcessor类中注册即可 我的自定义注解类是: package liusheng.dao; imp 阅读全文
posted @ 2018-03-19 00:43
学习spring是我必须的
阅读(249)
评论(0)
推荐(0)
摘要:
context:component-scan使用 1.使用自定义注解 我们知道,context:componet-scan只会扫描类上的@Configuration @Component @Controller @Service @Repository 并且自动开启<context:annotati 阅读全文
posted @ 2018-03-19 00:14
学习spring是我必须的
阅读(329)
评论(0)
推荐(0)
浙公网安备 33010602011771号