How Class entity is not required to write set, get method

pom which adds to rely on:

<-! Lombok - is a can help us simplify the elimination of some of the must have tools but looked very bloated Java code, a simple comment form 
by using the corresponding annotations, you can generate the corresponding source code at compile time method. The following simple test tool kinda fun, 
annotate we do not have to manually write getter \ setter, constructed in a manner similar code. -> 
<dependency> 
   <groupId> org.projectlombok </ groupId> 
   <artifactId> Lombok </ artifactId> 
</ 
dependency> ---------------- 
Disclaimer: This article is CSDN bloggers original article, "then ran a sauce", and follow CC 4.0 BY- SA copyright agreement, reproduced, please attach the original source link and this statement. 
Original link: HTTPS: // blog.csdn.net/weixin_42432390/article/details/80647820

 

 

Then the idea to install lombok plug entity class can achieve write-only property, no need to write get, set method, convenient and easy to use

Guess you like

Origin www.cnblogs.com/meizhoulqp/p/11758805.html