Skip to content
Spring Boot Swagger 2 Demo Application
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Spring Boot with Swagger 2.0

Best Of Hello World: SpringBootSwagger2

Say Hello

This is a very simple and basic program to start with Spring Boot and Swagger 2.0. This project gives an idea about how to create Spring Boot Rest based CRUD Application, with Open API Documentation configured with Swagger 2.0. The Swagger gives facility of Documentation which is self explinatory and with Swagger-UI the APIs can be executed and tested without a much efforts at client side.

Getting Started

This sample code is fully executable on its own based on the prerequisites are set up properly.

Prerequisites

You are required to have few tools before you start with using the source code.

  • JDK 1.8
  • Maven
  • IDE (Recommended - Spring Tool Suite)
  • Git

Install JDK, Maven and Git as first step, before you get the the code base setup.

Setup Code Base

Use below URL to Clone Source Code

git clone https://github.com/get2mandar/SpringBootSwagger2.git

Build a Project using Maven by Command Line.
Change Directory to Downloaded Project Directory and execute below Maven Command.

mvn clean install

Run

Using the Command Line you can start this Spring Boot Applicaiton as below:

mvn spring-boot:run

OR you can run the Java Class blog.panditmandar.code.sbsw2demo.SpringBootSwagger2Application to execute this Application.

This can also be executed using Jar file.

mvn package
java -jar target/SpringBootSwagger2-0.1.jar
You can’t perform that action at this time.