Why can’t I make a single method to add a single user or a list of users in my POST request?
I’m learning a little about Rest Controller in Spring Boot, and i’m really a beginner, and i’m doing some tests here and this question came to me. This first option returned error 500. While researching I saw that trying to map directly to Object can cause problems because Spring Boot cannot infer the exact type during JSON deserialization. I would just like to understand a little more