简体   繁体   English

使用 Intellij IDEA 开发 Springboot 应用程序 - Ultimate Version 2018

[英]Developing Springboot Application using Intellij IDEA - Ultimate Version 2018

I am using Intellij IDEA ultimate version 2018 for developing and Springboot Application.我正在使用 Intellij IDEA 终极版 2018 来开发和 Springboot 应用程序。 Although the application is started when running the main application, the IDE shows errors for getters and setters.虽然应用程序在运行主应用程序时启动,但 IDE 显示 getter 和 setter 错误。

The error is:错误是:

Can't resolve method '......'无法解析方法'......'

Since I my subscription was expired, I moved to this version.由于我的订阅已过期,我搬到了这个版本。 As I think, the IDE matters for this error.我认为,IDE 对这个错误很重要。 Can someone help me out regarding this matter?有人可以帮我解决这个问题吗?

You are using Lombok in this project which IntelliJ IDEA doesn't support out of the box.您在这个项目中使用的是 IntelliJ IDEA 不支持开箱即用的 Lombok。

You need to install this plug-in: https://plugins.jetbrains.com/plugin/6317-lombok你需要安装这个插件: https://plugins.jetbrains.com/plugin/6317-lombok

You can try invalidating the cache and restarting IntelliJ, in many cases, it will help.您可以尝试使缓存无效并重新启动 IntelliJ,在许多情况下,它会有所帮助。

In the IntelliJ IDEA, choose this menu, after the restart, it may work.在 IntelliJ IDEA 中,选择这个菜单,重启后就可以工作了。

File -> Invalidate Caches/Restart文件 -> 使缓存无效/重新启动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM