mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-23 08:26:05 +00:00
fix[event]: 修复event自动化配置BeanPostProcess的错误用法
This commit is contained in:
@@ -17,20 +17,16 @@ import com.zfoo.event.schema.EventRegisterProcessor;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
/**
|
||||
* @author jaysunxiao
|
||||
* @version 3.0
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Import({EventRegisterProcessor.class})
|
||||
public class EventAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public EventRegisterProcessor eventRegisterProcessor() {
|
||||
return new EventRegisterProcessor();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public EventContext eventContext() {
|
||||
|
||||
Reference in New Issue
Block a user