Skip to content

Commit

Permalink
perf($Starter): dynamically init bean WebRequestLogAspect
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Miller (锺俊) committed Dec 23, 2020
1 parent dfd0466 commit e3176ad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -46,6 +47,7 @@ public ExceptionControllerAdvice exceptionControllerAdvice() {

@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value = "maf.configuration.webRequestLogDisabled", havingValue = "false")
public WebRequestLogAspect webRequestLogAspect() {
log.debug("Initial bean: {}", WebRequestLogAspect.class.getName());
return new WebRequestLogAspect();
Expand Down

0 comments on commit e3176ad

Please sign in to comment.