The lombok @Builder
creates a default toString()
- I do not want this.
Does anyone know the best approach to exclude?
TIA.
It would help to know why you want to exclude the builder class's toString().
Anyway, according to the docs, you can supply a skeleton builder class yourself and implement toString() in it.
See https://projectlombok.org/features/Builder :
Lombok will generate everything that you do not manually add
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.