What is wrong with my code?
Hello! I am trying to code along but am not getting the same result. I have been inspecting my code so much I feel a bit blind, so could I perhaps get a second pair of eyes, with maybe a bit more knowledge?
I am learning Spring, working with Spring Boot & Databases.
It is not much code, three classes so if it's not minded I will just share it here.
5 Replies
⌛
This post has been reserved for your question.
Hey @De1ora! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Ignore the comments. The errors I am getting are in FolderController:
Variable 'folderRepository' might not have been initialized :15
'Folder()' cannot be applied to '(java.util.UUID, java.lang.String)' :23
FolderController
Update: I added @NoArgsConstructor to my Folder class.
Did that fix it?
Otherwise: Are you using JDK 23?
Did it work?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.