Please see the example below. I wonder if there will be any difference if I specify the scope or not below. Thanks
@RestController
@RequestScope
@RequestMapping("/api/v1/user")
public class UserResource {
@GetMapping("/addresscheck")
public String getAddress() {
return customer.getAddress();
}
}
// Here does it matter I define the scope or not? is it still going to be treated as one per request?
@RestController
@RequestMapping("/api/v1/user")
public class UserResource {
@GetMapping("/addresscheck")
public String getAddress() {
return customer.getAddress();
}
}