|
@@ -24,6 +24,7 @@ import com.pig4cloud.pigx.common.log.aspect.SysLogAspect;
|
|
|
import com.pig4cloud.pigx.common.log.event.SysLogListener;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
|
|
|
+import org.springframework.context.ApplicationEventPublisher;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
@@ -47,7 +48,7 @@ public class LogAutoConfiguration {
|
|
|
}
|
|
|
|
|
|
@Bean
|
|
|
- public SysLogAspect sysLogAspect() {
|
|
|
- return new SysLogAspect();
|
|
|
+ public SysLogAspect sysLogAspect(ApplicationEventPublisher publisher) {
|
|
|
+ return new SysLogAspect(publisher);
|
|
|
}
|
|
|
}
|