I have created a Spring Boot application using Spring Intializr extension of VS Code. Configuration, Build Tool : maven, Language : Java, groupId : com.example, artifactId : springdemo, Spring boot version : 2.0.3, I have selected 2 dependencies which are Spring MVC and Spring DevTools Core from the dropdown. Here is the screenshot Screenshot of the selected dependencies After importing it and opening the folder structure Project Structure after vs code imports the maven project and opens up the folder
After this I ran a command
chmod 777 mvnw
to give permission to the gradle wrapper and after that
./mvnw clean install
This seems to work fine logs after the ./mvnw clean install command
This is my pom.xml My pom.xml contains
Here is the difference : My VS Code project does not contain the maven dependencies folder as in case of eclipse and even after install all the packages vs code does not seem to recognize the packages and shows error errors in vs code This is how my eclipse project structure look like eclipse project structure contains the maven dependencies
The final result is a running project. The project runs even from vs code by ./mvnw spring-boot:run
but I am unable to get any kind of IntelliSense from VS Code and although eclipse works but I need to use VS Code. Please help.