-
Download and install Maven, and Java 11 and properly set JAVA_HOME and insert Maven into the User Path (on Windows)
-
Go to start.spring.io and configure your project. I selected:
- Maven Project
- Java
- Jar
- Java 11
- Spring Boot DevTools & Spring Web
This enabled me to create my web application.
- Import into Eclipse as a Maven Project.
- Add Auto Configuration to ease my development.
SimpleProjectApplication.java
...
@SpringBootApplication
@RestController
@EnableAutoConfiguration
public class SimpleProjectApplication {
@RequestMapping("/")
String home() {
return "Hello web";
}
public static void main(String[] args) {
SpringApplication.run(SimpleProjectApplication.class, args);
}
}
- Run