Does IntelliJ support any kind of templating to create multiple files automatically?

后端 未结 2 1906
眼角桃花
眼角桃花 2021-02-10 23:38

So I have a spring mvc application, and I am noticing there is allot of repetitive code I am doing (I\'m newish to both java/spring).

Each time I create a new entity I h

2条回答
  •  被撕碎了的回忆
    2021-02-11 00:12

    Code generation is surprisingly easy, and IMO is best left out of the IDE equation. If you see an opportunity, create a quick tool using Velocity, FreeMarker, or J. Random templating solution until you figure out a better long-term solution, or it becomes unnecessary.

    Also consider simple generics; it's often enough.

提交回复
热议问题