springboot

Beginner’s Guide to GraphQL with Spring Boot

Reading Time: 4 minutes The world is a stage where all of us are artists. Constant learning is the foundation of success. So here we are going to have a tutorial on GraphQL in which we will see how to create a GraphQL server in Java. Objective We are going to query the details for a specific song from an online platform. Prerequisite Basic knowledge of:– Spring Boot– Java– Continue Reading

Spring Beans in Java

Reading Time: 2 minutes Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instantiate the objects, wires them together and manages their complete life cycle from creation till destruction.These objects in the Spring IoC container are referred to as beans. What is Inversion Of Control(IoC)? IoC simply means giving control to spring container to create and instantiate the spring beans Let`s say you want to Continue Reading

How to handle URL Encoded Form Data in Spring REST?

Reading Time: 3 minutes Sometimes, our REST endpoint needs to consume data in the form of application/x-www-form-urlencoded or using multipart/form-data. The source of this data can probably be an HTML form. Now, the first question which should come to our mind is, what is exactly this application/x-www-form-urlencoded or using multipart/form-data and how can we let our spring application consume this. This blog will help you to find answers to Continue Reading

Aspect Oriented Programming with Spring

Reading Time: 4 minutes What is AOP? Applications are generally developed with multiple layers. A typical Java application has Web Layer – Exposing the services to the outside world using REST or a web application Business Layer – Business Logic Data Layer – Persistence Logic While the responsibilities of each of these layers are different, there are a few common aspects that apply to all layers Logging Security These Continue Reading

First steps to build Spring Boot Application with Couchbase

Reading Time: 2 minutes As the name of the blog suggests, we will be taking the first steps to build a simple application from scratch using Couchbase as a database and spring -boot as a framework. Let’s get started. You can create a starter maven project using this link. Add Web, Lombok and Couchbase dependencies. The pom.xml should look like: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> Continue Reading

Developers Needs SDKMAN Not Super-Man

Reading Time: 4 minutes Every developer has pain for setup development environment to his/her machine with lots of the setups. Sometimes, the pain goes beyond while we need to test same application on multiple versions of SDKs or virtual machines. If you are a Mac user, you have the best option called brew installer. But if you are Linux user, your pain is unpredictable. We are JVM stack developers Continue Reading