How to create Simple Spring Boot Web Application using Maven in Eclipse Mars

Опубликовано: 05 Июнь 2016
на канале: raksrahul
16,857
26

How to create Simple Spring Boot Web Application using Maven in Eclipse Mars

1. Open Eclipse.

2. Create a maven project with artifact maven-archetype-webapp.

3. Open pom.xml. Copy dependencies for spring boot in it.

4. Build the project (Ctrl+B) to download all dependencies.

5. Create Application class which extends SpringBootServletInitializer and add annotation
@SpringBootApplication at class level.

6. Override method configure and configure it.

7. Create a resource/handler/restcontroller class.

8. Make a get web service with the help of @RequestMapping, @RestController.

9. Run the project on Server.

10. Check web service call. done

11. Finish.

Thank you :)

Follow us on :
Facebook :   / raksrahul-100219708647780  
Instagram :   / raksrahul_ig  

#java #springboot #spring #beginners #eclipse