What is Java bytecode injection?

前端 未结 3 748
再見小時候
再見小時候 2020-12-16 10:49

What exactly is Java bytecode injection and why would one use it?

3条回答
  •  别那么骄傲
    2020-12-16 11:46

    To address the second part of your question. I use it since I'm lazy and don't want the to spend half of my (working) life writing getters and setters. Instead I put an annotation @Data before my class definition and everything is done.

    See the 3 minutes video demonstration on Project Lombok.

提交回复
热议问题