In the last post we saw how to use Swagger 2 with SpringFox and JAX-RS. Using annotations for methods usually pulls in all the parameters for that method. There may be certain instances where you may have to pass in extra header param for a method to work. Can we do that using Swagger 2 annotations?
Using Swagger 2 with SpringFox and JAX-RS in a SpringBoot app
Swagger 2 is the defacto API documentation tool that is used in many Spring boot applications. Most of the examples for using swagger with spring boot are with springMVC. There are certain use cases where you would be using spring boot with JAX-RS. Is it possible to use Swagger 2 with SpringBoot and JAX-RS applications?
Continue reading “Using Swagger 2 with SpringFox and JAX-RS in a SpringBoot app”
Spring Boot Essentials
As you have seen so far, Spring boot takes care of a lot of the boiler plate configurations required to setup a Spring application that we would have to do otherwise and helps us to get to the application coding part asap.
To do that, Spring boot has 4 tricks up its sleeve that it uses to accomplish what it does.
Spring Boot – Actuator setup
Spring Boot actuator provides useful metrics regarding your application like health, configurations, error pages, version information, etc. Setting up and using an Actuator in Spring Boot could not be easier than adding the correct dependency in the pom.xml file and using the appropriate url to access the metric information.
Spring Boot – Basic Security Setup
In this post we are going to look at setting up basic security for your Spring Boot app.
Any Spring Boot app should have some kind of security in place as a general best practice, especially while being deployed in a production environment.
Spring Boot – Using log4j logging
Spring boot uses an opinionated approach for a lot of things, with logging being one. It uses Logback by default. While Logback is useful, some of you may want to use a different log library. What do you have to do to use log4j as the logger?
Spring Boot – Disable Banner, Change Banner
One of the most often asked questions with Spring boot is how do i disable the banner or how can i change it
Lets look at that today.
Continue reading “Spring Boot – Disable Banner, Change Banner”
Spring Boot – Quickstart
In the following post we are going to look at setting up a very very simple spring boot application that just runs, with only a few lines of code. This is a quick start version for setting an app in less than a minute. Continue reading “Spring Boot – Quickstart”