最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Auto generate-sources in IntelliJ - Stack Overflow

programmeradmin3浏览0评论

I'm using IntelliJ 2024.3.1.1 CE, Maven 3.9.9 (boundled), SpringBoot 3.4.1, java 21.

I'm also using some processor like springdoc.openapi.maven.generator and mapstruct to generate sources and mapper.

I have noticed that IntelliJ doesn't generate mapper when I save files while Eclipse does.

This kind of feature could be very usefull especially for Mapstruct: in Eclipse when I modify a mapstruct mapper Interface and save it, IDE generates immediately the relate implementation. In IntelliJ I must perform a mvn generate-sources or a clean install to do the same.

I tryied to activate the build automatically and the enable annotation processor options to achieve the goal with no luck.

Is there a way to fix it?


For now I solved assigned a shortcut to:

But is not quick like Eclipse. If somebody knows a better solution please update!

发布评论

评论列表(0)

  1. 暂无评论