2020
10-10
10-10
解决spring boot启动扫描不到自定义注解的问题
对于自定义注解这里就不唠叨了,百度一大堆,这里有我一个自定义注解@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.METHOD})public@interfaceMsgEvent{RetailOrderEventmsgEvent();}注解实现类@ComponentpublicclassMsgEventProcessorimplementsBeanPostProcessor{/***事件消息注解与实例Bean的映射对象*/publicstaticMap<String,ServiceBean>EVENTCODESERVICEBEANMAP=newHashMap<Stri...
继续阅读 >