简体   繁体   English

Intelij Spring Boot 2 application.properties

[英]Intelij Spring Boot 2 application.properties

I'm using IntelliJ Idea我正在使用 IntelliJ Idea

IntelliJ IDEA 2019.1.4 (Community Edition) Build #IC-191.8026.42, built on July 30, 2019 JRE: 1.8.0_212-release-1586-b4 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro macOS 10.14.6 IntelliJ IDEA 2019.1.4(社区版)Build #IC-191.8026.42,构建于 2019 年 7 月 30 日 JRE: 1.8.0_212-release-1586-b4 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains.16.10sro

I'm trying to follow a Udemy course on Spring Boot 2 and copying step by step what the instructor is doing.我正在尝试学习有关 Spring Boot 2 的 Udemy 课程,并逐步复制讲师正在做的事情。 The instructor is using IntelliJ IDEA Ultimate edition though.讲师使用的是 IntelliJ IDEA Ultimate 版。

When the instructor goes to edit any of the Spring Boot application.properties, IntelliJ code completion kicks in and you can see all the options/intelligence at work in the IDE.当讲师开始编辑任何 Spring Boot application.properties 时,IntelliJ 代码完成启动,您可以看到在 IDE 中工作的所有选项/智能。 I don't see this at all.我根本没有看到这一点。 I am pretty much certain that I have enabled everything I can.我非常确定我已经启用了所有我能做的。 The application.properties DO works fine. application.properties DO 工作正常。 The changes I make there work fine in my Spring project, such as logging or port selection and more;我在 Spring 项目中所做的更改可以正常工作,例如日志记录或端口选择等; it's just that there is no IntelliJ code completion in the iDE.只是在 iDE 中没有 IntelliJ 代码完成。

Code completion is working fine in my Java classes, its just the application.properties (which is located, as per default, in the Resources dir in my project ).代码完成在我的 Java 类中工作正常,它只是 application.properties(默认情况下,它位于我的项目的 Resources 目录中)。

Is this feature only available in the Ultimate edition?此功能仅在旗舰版中可用吗? Should this work in the community edition?这应该在社区版中工作吗? And if so, I'd really appreciate some pointers as to how to enable it.如果是这样,我真的很感激有关如何启用它的一些指示。

Many thanks.非常感谢。

The code auto-completion feature for application.properties file and other Spring Boot framework related features are only available in Ultimate edition, and not in Community edition. application.properties文件的代码自动补全功能和其他 Spring Boot 框架相关功能仅在Ultimate版中可用,在 Community 版中不可用。 That's why you won't see code auto-completion or suggestion features.这就是为什么您不会看到代码自动完成或建议功能的原因。

Long story short, community edition of IntellIJ doesn't support spring boot features.长话短说,IntellIJ 社区版不支持 Spring Boot 功能。 You'll need enterprise edition to use all these features.您需要企业版才能使用所有这些功能。

You still can run the spring boot application though only because it has a main method (assuming you're working with Jars)您仍然可以运行 spring boot 应用程序,因为它有一个 main 方法(假设您正在使用 Jars)

If you want to build JavaEE apps (comprising, then, Spring app), you need to buy the Ultimate version of IntelliJ.如果要构建 JavaEE 应用程序(包括 Spring 应用程序),则需要购买 IntelliJ 的 Ultimate 版本。 Look at this: https://www.jetbrains.com/idea/download/#section=windows看看这个: https : //www.jetbrains.com/idea/download/#section=windows

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

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