File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
src/main/java/com/somemore/global/aspect/log Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 33import com .fasterxml .jackson .core .JsonProcessingException ;
44import com .fasterxml .jackson .databind .ObjectMapper ;
55import com .somemore .global .aspect .log .utils .SensitiveDataMasker ;
6+ import lombok .RequiredArgsConstructor ;
67import lombok .extern .slf4j .Slf4j ;
78import org .aspectj .lang .ProceedingJoinPoint ;
89import org .aspectj .lang .reflect .MethodSignature ;
1415import java .util .LinkedHashMap ;
1516import java .util .Map ;
1617
18+ @ RequiredArgsConstructor
1719@ Slf4j
1820@ Component
1921public class ParameterExtractor {
2022
2123 private final ObjectMapper objectMapper ;
2224 private final SensitiveDataMasker sensitiveDataMasker ;
2325
24- public ParameterExtractor (ObjectMapper objectMapper ) {
25- this .objectMapper = objectMapper ;
26- this .sensitiveDataMasker = new SensitiveDataMasker ();
27- }
28-
2926 public String extractParameters (ProceedingJoinPoint joinPoint ) {
3027 try {
3128 MethodSignature signature = (MethodSignature ) joinPoint .getSignature ();
Original file line number Diff line number Diff line change 66import com .somemore .global .exception .ImageUploadException ;
77import com .somemore .global .exception .BadRequestException ;
88import com .somemore .global .exception .NoSuchElementException ;
9+ import lombok .RequiredArgsConstructor ;
910import lombok .extern .slf4j .Slf4j ;
1011import org .springframework .http .HttpStatus ;
1112import org .springframework .http .ResponseEntity ;
1213import org .springframework .stereotype .Component ;
1314import org .springframework .web .bind .MethodArgumentNotValidException ;
1415
16+ @ RequiredArgsConstructor
1517@ Slf4j
1618@ Component
1719public class ResponseExtractor {
1820
1921 private final ObjectMapper objectMapper ;
2022
21- public ResponseExtractor (ObjectMapper objectMapper ) {
22- this .objectMapper = objectMapper ;
23- }
24-
2523 public LoggedResponse extractResponse (Object result ) {
2624 try {
2725 if (result == null ) {
Original file line number Diff line number Diff line change 22
33import com .fasterxml .jackson .core .JsonProcessingException ;
44import com .fasterxml .jackson .databind .ObjectMapper ;
5- import lombok .RequiredArgsConstructor ;
65import lombok .extern .slf4j .Slf4j ;
76import org .springframework .stereotype .Component ;
87
98import java .util .*;
109
11- @ RequiredArgsConstructor
1210@ Slf4j
1311@ Component
1412public class SensitiveDataMasker {
You can’t perform that action at this time.
0 commit comments