Tag: spring boot

Spring Boot – Introduction Tutorial ( Don’t Miss )

Spring Boot is a framework developed on top of core spring framework. The main aim of Spring Boot is to let developers to create spring production grade applications and services with very less effort. Did you remember, what it…

Spring Boot + Maven – Hello World Example Step by Step

In this article, I am going to explain the steps to create a Spring Boot hello world application using Spring Tool Suite(STS) and Maven. Friends follow this article carefully, as this is the first spring boot application I am…

Spring Boot – Creating a RESTful Web Service Example

In the previous article we have just created a simple hello world spring boot application, in this tutorial I am going to show you how to create a Restful web service using Spring Boot, believe me its very simple…

Spring Boot – Common Application Properties (application.properties)

In this article I am going to explain about Spring Boot’s application.properties.  Generally we will create property files for writing static values related to our application. If you consider some real time java applications, we will use these .property files for writing  environmental (server)…

Spring Boot – How to Change Default Tomcat Server Port

In our previous RESTful example, when we start the application Spring Boot’s inbuilt tomcat server by default will take 8080 as its port number, did you observe that 🙂 go back and have a look once. In this article, I…

Spring Boot – How to Change Default Context Path

Firstly what is this context path? simply its our application name. Generally while we are hitting any application in the browser, we will write the URL with the application name(context) right? I mean… http://localhost:<port>/<application_name or context_path>/operation_name But if you check Spring…

Spring Boot – How to Reload Changes Without Restarting the Server

One of the main challenge for the java developers is to deploy the apps and restart server when ever there is a code change. In this article, I am going to show you how to reload the code changes without…

Spring Boot JDBC + MySQL – How to Configure Multiple DataSource

In the previous article we saw how to configure a datasource in a spring boot application,  that’s very straight forward.  In this article I will show you how to configure multiple datasources in spring boot application. Unlike single datasource, in order to create…

How to Deploy Spring Boot Applications on External Tomcat Server

So far, in previous examples we used to deploy and run the applications using embedded tomcat server provided by the spring boot. Generally in the real-time projects we wont use inbuilt servers provided by the frameworks because of many reasons…

Spring Boot + Spring Security – RESTful Web Service with basic Authentication

In this article, I am going to explain you how to implement basic authentication for RESTful web services using Spring Boot and Spring Security. We will need to create a java file with spring security configurations in it, that’s…

Spring Boot + Spring Security – RESTful Web Service with Database Authentication

This article describes how to implement database authentication for your RESTful web services using Spring Boot and Spring Security. Let me start with the required dependencies.. Dependencies <!– Related to Database –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId>…

Spring Boot + Spring MVC + JSP Hello World Example

This article describes how to create a Spring MVC application using Spring Boot. As this is an MVC application unlike previous examples, we have to create a webapp folder under /src/main (src > main > webapp) where we will place all…

Spring Boot – Example of RESTful Web Service with XML Response

Spring boot services by default gives the response in JSON format, but we can reverse this functionality in such a way that the default response will be in XML.  In order to do that we have to add a…

Spring Boot – RESTful Web Service with POST Request in JSON Example

In the previous articles I didn’t get a chance to use the POST request in the examples, but this is very important. In this article I am going to show you how to create a Spring Boot REST service…

Spring Boot – RESTful Web Service with POST Request in XML Example

In this article I will am going to show you how to read XML data from REST request using Spring Boot. As I told you in the previous articles, spring boot by default support reading and producing the JSON data. But for…

Spring Boot – Display All Beans Available in ApplicationContext

In this article, I am going to show you how to see the beans that are loaded by the Spring Boot from the ApplicationContext.  What we have to do is implement main class with CommandLineRunner/ApplicationRunner interface and override its run…

How to Configure Cache in Spring Boot Applications

In this article, I will explain step by step how to configure cache in spring boot applications.  Caching helps to increase the performance of the application by reducing number of round trips between the database or any expensive resources….

Spring Boot Configure DataSource Using JNDI with Example

We already saw the default approach to configure datasource, in this article I am going to explain you how to configure datasources using JNDI lookup in spring boot applications.  Before you read this article, I highly recommend to read How…

If you enjoyed this blog, please consider sharing it...!!!
Most Recent Posts from Top Categories
Spring Boot Hibernate Spring
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2025 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.