保誠-保戶業務員媒合平台
Jack
2022-04-22 739bf7fb573d4af2c0e33d1d7c9d38a19d7c1066
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.pollex.pam.config;
 
import com.pollex.pam.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);
    }
}