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

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

Error:ajc: The method getDestHost() is undefined

 

二、问题根源

网上搜索到一篇博客说:

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

 

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

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

 

 

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

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

 

相关文章:

  • 2021-11-16
  • 2021-06-04
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-06-24
猜你喜欢
  • 2021-06-06
  • 2021-04-22
  • 2021-10-22
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案