idea 运行报错:java: JPS incremental annotation processing is disabled.

SpringCloud 编译报错:java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process “jps.track.ap.dependencies” VM flag to enable/disable incremental annotation processing environment.

解决方案:

1. 增加:-Djps.track.ap.dependencies=false

 

2. 清理缓存