intelj idea编译项目报错,Error:ajc: The method getDestHost() is undefined

一、问题简述

这两天在idea中引入过aspectJ相关的东西,用到了aspectJ的编译器进行编译时织入。

结果今天在编译一个老项目时,(用到了lombok,lombok的idea插件会在javac编译器进行编译时,生成getter/setter等方法),报错如下:

Error:ajc: The method getDestHost() is undefined

 

二、问题根源

网上搜索到一篇博客说:

 

感觉和自己的问题应该很像。于是照着下面的链接,将idea默认的编译器改成了javac。问题fix。

https://blog.csdn.net/AlbenXie/article/details/70140171?utm_source=blogxgwz4

 

 

我这边是直接照下图改的:

 

posted @ 2018-10-25 15:35  三国梦回  阅读(2736)  评论(0编辑  收藏  举报