Files
jhipster-question-bank/src/main/java/com/example/questionbank/config/LoggingAspectConfiguration.java
T

18 lines
503 B
Java

package com.example.questionbank.config;
import com.example.questionbank.aop.logging.LoggingAspect;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import tech.jhipster.config.JHipsterConstants;
@Configuration
@EnableAspectJAutoProxy
public class LoggingAspectConfiguration {
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
return new LoggingAspect(env);
}
}