I am new to Spring/Maven, and am following this tutorial: Serving Web Content with Spring MVC.
Everytime I run mvn spring-boot:run, I get this error:>
I made the following changes to make mvn clean spring-boot:run work:
pom.xml to the root directory, which makes the directory hierarchy to be:Directory hierarchy:
.
├── pom.xml
└── src
└── main
├── java
│ └── hello
│ ├── Application.java
│ └── GreetingController.java
└── resources
└── templates
└── greeting.html
extensions in the following part:Commented out part:
org.springframework.boot
spring-boot-starter-web
It seems you meant to exclude those dependencies. mvn clean spring-boot:run will just exit successfully if the embed tomcat is excluded, but I think this is the correct behave because there's no container to deploy the application. Anyway, you can try it out and make changes according your requirements.