java - Generating getters and setters using project Lombok -
i wanted use lombok dependency in project. so, downloaded lombok-1.16.18.jar
, added build path of on of classes. configuration shown below.
import lombok.data; import lombok.getter; import lombok.setter; import lombok.tostring; @tostring(includefieldnames=true) public @data class student { @getter @setter private integer id; @getter @setter private string name; //private date dob; @getter @setter private string uid; public static void main(string[] args) { // todo auto-generated method stub student s = new student(); system.out.println(s); } }
but, not getting proper output in console. getting object
classes tostring()
output com.selflearn.sandesha.student@7852e922
. not able use getters , setters. how make lombok work or wrong doing?
your configuration incomplete. review https://projectlombok.org/setup/eclipse , check if compiles. when does, try again!
Comments
Post a Comment