Add toString method for Customer.

Fix the issue of `CustomizableTraceInterceptor` using `Object.toString()``.

Original pull request #668
This commit is contained in:
duicym
2023-08-25 16:59:37 +08:00
committed by Jens Schauder
parent e60ab896a5
commit d9c0a0f088

View File

@@ -26,5 +26,12 @@ public class Customer {
String firstname;
String lastname;
@Override
public String toString() {
return "Customer{" +
"id=" + id +
", firstname='" + firstname + '\'' +
", lastname='" + lastname + '\'' +
'}';
}
}