Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring boot application.properties files does not autocomplete the code

I've created a spring project in IntelliJ IDE with Spring Initializr. When I tried to modify the application.properties file, I realized that it does not autocomplete the code, I mean, it does not show the options like when you type "In" and shows "Integer". Also, if I try to run the app, localhost:8080/index.html is redirected to http://localhost:8080/login

Any idea about what the problem is? thanks

just realized that import lombok.Data; does not highlight also, even with the dependency is set enter image description here

like image 243
Raul Magdalena Catala Avatar asked Jul 04 '26 09:07

Raul Magdalena Catala


1 Answers

To your first question:

...it does not autocomplete the code

You should make sure your "Spring Boot" plugin is enabled. Look here for how to manage plugins in Intellij IDEA.

To your second question:

localhost:8080/index.html is redirected to http://localhost:8080/login

To fix your redirect problem, you should remove your maven dependency for spring-starter-security (as already stated by user9717940). However, it could be caused by other security-related dependencies, like something Oauth. Go to your maven pom.xml file and look for something like the snippet below and remove it from your dependencies section.

        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
like image 144
geekTechnique Avatar answered Jul 07 '26 01:07

geekTechnique



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!