Lombok @Data error
I'm getting this error in this part of code: even though I've used the @Data annotation in my CustomerDto class:
39 Replies
⌛
This post has been reserved for your question.
Hey @IamMax420! 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.
does it work if you annotate it with @getter and @setter instead of @data
nope...
whats the error when you annotate with getter
is it underlined in the editor as error
or no
it's not
interesting
show the lombok setup then
in pom
show the annotation process thing
with lombok
from the settings?
yea in pom
interesting
what if you try to comment out the line where it uses the get first name
see if it throws an error on the get last name method
yeah now it just throws an error for the next method
.getLastName()
ok uncomment the get first name method then
and show the dto class with getter and setter annotations
ok so
time to change the pom l0l
hmm
oh yea
swap the
yea swap the part with lombok
the first <plugin></plugin>
aight
wow it seems to work now
😱
incredible right
yea
wht did you change
ur pom file
in the <plugin>
tf
yea
u use lombok yourself?
or nah
yes
but i dont use @data annotation
ok but why did it not work with this
and worked with this
well you can see here the version is specified
also target and source
you need to specify lombok version
afaik
bruh spring initializer is ass in that case
yea kinda
giving incomplete xml plugins and all
but thanks for helping me out
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
gif for u
l0l
I just starred it
will keep that in mind lmao
amazing
💤
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.