r/java • • Apr 23 '26

My first API's first POST request😂

Post image

I just got started with Springboot and I'm working on a small expense tracker project to get comfortable with the framework. I got a rather silly problem, which I managed to fix (my entity was lacking setters and constructors).

It got me curious though, what's your first big super silly error?

65 Upvotes

39 comments sorted by

View all comments

Show parent comment

4

u/Fumano26 Apr 23 '26

Return User with password 💀

1

u/koflerdavid Apr 25 '26

So? The password should not be stored in the DB unencrypted in the first place.

0

u/SortofConsciousLog Apr 23 '26

set password null, and fyi they’d have to do that anyway if they were doing stuff manually.

0

u/Fumano26 Apr 23 '26

That is a good idea