1. Overview In this article, we will check which connection pool is being used in our Spring Boot application. In Spring Boot, By annotating with @Autowired for the javax.sql.DataSource, we can get which database connection pool is using in the currently running application. 2. Tomcat pooling – Default Here’s the program to print the current […]Continue reading
Would you like to select all starters dependencies from Spring Initializer http://start.spring.io/ and work offline? Follow these steps: Go to Spring Initializer http://start.spring.io Click on “Switch to the full version”. Manually select all the dependencies (or) Run the below script (to select all) on Developer Tools -> Console (Chrome browser) Click on Generate Project Open the Project […]Continue reading
To enable https (SSL) for spring boot application on the embedded Tomcat, we need to follow these steps. Get a SSL certificate Enable HTTPS in Spring Boot 1.Get a SSL certificate: To get SSL digital certificate for our application we have two options Generate self-signed certificate on our own (It isn’t a good option in […]Continue reading
By default, Tomcat is the default server for Spring Boot. If we want to change it to Jetty, need to exclude Tomcat and include Jetty in pom file as below.
By now, we doved into the ways of creating Spring Boot applications. But, How does the Spring Boot brings magic to Spring application development? There are four tricks that simplifies the Spring application development with Spring Boot: Automatic configuration—Automatically provide configuration for application functionality common to many Spring applications. Starter dependencies—You tell Spring Boot what […]Continue reading
Spring Boot Initilizr is used to quick start new Spring Boot Maven/Gradle projects within no time. It generates initial project structure and build scripts to reduce Development time. As we discussed in my previous post, Spring Boot Initilizr is available in the following forms: Spring Boot Initilizr With Spring Boot CLI Spring Boot Initilizr With […]Continue reading
Generally, the hardest part of any project is getting started. You need to setup a directory structure for various project artifacts, create a build file, and populate the build file with dependencies. While the Spring Boot CLI removes much of this setup work, if you favor a more traditional Java project structure, then you’ll want […]Continue reading
In my previous posts “Introduction to Spring Boot” we have discussed Spring Boot basics and three approaches to creating the Spring Boot applications. Now we will discuss the first one CLI. What is Spring Boot CLI? The Spring Boot CLI is a command line tool that can be used if you want to quickly prototype […]Continue reading