保誠-保戶業務員媒合平台
Tomas
2022-01-24 73307b0ada907f8ac857b3dfc4e7d50e3b7b92e9
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);
    }
}