I'm a spring boot beginner I created a sample project using the spring initializer in the application.properties I want to change the server. port but editor doesn't know that doesn't know anything at all what's the problem
I'm a spring boot beginner I created a sample project using the spring initializer in the application.properties I want to change the server. port but editor doesn't know that doesn't know anything at all what's the problem
Community Edition of InteliJ IDEA doesn't support autocompletion for application.properties. It is ultimate edition feature.
From this support thread
Spring Boot framework is available in the Ultimate edition of IntelliJ IDEA only. It comes as a bundled plugin and is enabled by default.
IntelliJ community edition doesn't support spring boot hence you don't have autocompletion, its an "enterprise" feature (read supported only in the IntelliJ enterprise edition).
All-in-all, there is a special JSON file that IntelliJ can parse (again, only the enterprise edition) and based on the information found in this file it can produce auto-completion for the properties / YAML configuration files.
You can also create such a JSON for your own configuration files by using an annotation processor:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
See this tutorial for example, there are many others. But again, this all works only in the enterprise edition of IntelliJ.
Hope it will help you learning, keep working, mate :D