Here’s the complete guide
RequestMapping is generic - you can use with GET, POST, PUT or any of the other request methods using the method attribute on the annotation.
GetMapping is specific to GET request method. It’s just an extension of RequestMapping to improve clarity.
You would need to do 2 Steps.
Generate a war from the project.
Deploy it to your favourite server (Websphere or Weblogic or Tomcat or …).
Step 1 : This getting started guide should help - https://spring.io/guides/gs/convert-jar-to-war/
Step 2 : Depends on your server
Recommended Reading - https://spring.io/guides/gs/convert-jar-to-war/
Here’s the direct link to spring documentation
Use Spring Boot Developer Tools.
Adding Spring Boot Developer Tools to your project is very simple.
To use this annotation, apply it over class as below:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency>
After this, Restart the application.
spring-boot-maven-plugin provides a few commands which enable you to package the code as a jar or run the application
spring-boot: run runs your Spring Boot application.
spring-boot: repackage repackages your jar/war to be executable.
spring-boot: start and spring-boot:stop to manage the lifecycle of your Spring Boot application (i.e. for integration tests).
spring-boot: build-info generates build information that can be used by the Actuator.
Spring Boot 2.0 requires Java 8 or later. Java 6 and 7 are no longer supported.
Spring Boot aims to enable production ready applications in quick time. Spring Boot provides a few nonfunctional features out of the box like caching, logging, monitoring and embedded servers.
spring-boot-starter-actuator - To use advanced features like monitoring & tracing to your application out of the box
spring-boot-starter-undertow, spring-boot-starter-jetty, spring-boot-starter-tomcat - To pick your specific choice of Embedded Servlet Container
spring-boot-starter-logging - For Logging using logback
spring-boot-starter-cache - Enabling Spring Framework’s caching support
Spring Boot also provides other starter projects including the typical dependencies to develop specific type of applications
spring-boot-starter-web-services - SOAP Web Services
spring-boot-starter-web - Web & RESTful applications
spring-boot-starter-test - Unit testing and Integration Testing
spring-boot-starter-jdbc - Traditional JDBC
spring-boot-starter-hateoas - Add HATEOAS features to your services
spring-boot-starter-security - Authentication and Authorization using Spring Security
spring-boot-starter-data-jpa - Spring Data JPA with Hibernate
spring-boot-starter-data-rest - Expose Simple REST Services using Spring Data REST