@RequiredArgsConstructor
@RestController
public class UserController {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
private final UserService userService;
@GetMapping("/api/user/{id}")
public List<UserDataResponseDto> findAllUsers(@PathVariable String id) {
logger.warn("UserController> findAllUsers> id="+id);
return userService.findAllUsers(Long.parseLong(id));
}
}
private UserService userService;
와 private final UserService userService;
의 차이는 무엇일까?