Spring

Spring-Webflux: How to test controllers?

Reading Time: 3 minutes Introduction : While working with Spring MVC, you might have used Spring MockMVC to perform testing of Spring web MVC controllers. MockMVC class is part of the Spring MVC test framework which helps in testing the controllers explicitly starting a Servlet container. But, this is not something that will work if you are using SpringBoot Webflux. If you have a Spring application built with Webflux, the MVC controllers can be tested Continue Reading

Salient Features of Spring WebFlux

Reading Time: 4 minutes What is Spring WebFlux? Spring WebFlux is a fully non-blocking, annotation-based web framework built on Project Reactor that makes it possible to build reactive applications on the HTTP layer. WebFlux uses a new router functions feature to apply functional programming to the web layer and bypass declarative controllers and RequestMappings. It requires you to import Reactor as a core dependency. WebFlux was added in Spring 5 as a reactive Continue Reading

Getting Started with Spring Security

Reading Time: 3 minutes Spring Security Spring Security is a framework that focuses on providing both authentication and authorization to Java applications. Basically, it provides ways to apply application-level security to the application. Let’s understand spring security with a real-life example Suppose we developed an application IPL Management System, and it has two different services i.e. User Service and another one is Admin Service. Now we need to make sure Continue Reading

Spring Cloud GCP And BigQuery: A Way Large Dataset Handle

Reading Time: 5 minutes Introduction In this example, we are going to cover how to load data into the BigQuery table and query the table using GCP console and API. We will use Spring Cloud GCP to make our application ready for accessing the Google Cloud Platform services. Spring Cloud GCP and BigQuery Spring Cloud GCP and BigQuery is a library that provides support for Google Cloud Platform (GCP) Continue Reading

Spring Cloud GCP- Cloud Pub/Sub Sending Messages

Reading Time: 4 minutes   Spring framework is very popular and most widely used across the world. It is also one of the oldest frameworks in Java. The Spring Cloud GCP project makes the Spring Framework a first-class citizen of the Google Cloud Platform (GCP). In this blog series, we will create an application to send messages and another for receiving messages. We will use Google Cloud Pub/Sub as Continue Reading

Spring Cloud GCP IAP Authentication and Authorization 

Reading Time: 2 minutes Identity-Aware Proxy (IAP) establish a central authorization layer for applications accessed by HTTPS, so we can use an application-level access control model instead of relying on network-level firewalls. IAP policies scale across organization. We can define access policies centrally and apply them to all of applications and resources. When you assign a dedicated team to create and enforce policies, we protect project from incorrect policy Continue Reading

Spring GCP BigQuery

Reading Time: 3 minutes BigQuery is Google’s fully managed, petabyte scale, low cost analytics data warehouse. It’s Serverless, highly scalable, and cost-effective multicloud data warehouse designed for business agility. BigQuery Benefits Gain insights with real-time and predictive analytics– Query streaming data in real time and get up-to-date information on all your business processes. Predict business outcomes easily with built-in machine learning–without the need to move data. Access data and Continue Reading

Intro to Spring AOP

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn about working with Spring AOP.Here we will look at what AOP is, and what features we have with AOP. Let’s start with the intro first. Spring AOP AOP stands for Aspect-Oriented ProgrammingSpring Continue Reading

Intro to Spring Reactor: Part 1

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn about Spring Reactor. Let’s start with the basics about what is Reactive Programming first. Reactive Programming It’s important to understand the difference between reactive programming and reactive systems. We use both these Continue Reading

Introduction to Spring Reactor

Reading Time: 3 minutes In this Spring Reactor blog, we will learn what is reactive programming. Why we need reactive Programming? How we can get started with reactive behaviour in a Spring Boot project and start producing and consuming messages in the same application itself. In above figure you can see working model of traditional rest api. Every time when clients send request to application. Each request will be Continue Reading

Spring Reactor

Reading Time: 5 minutes 1. Overview In this article, we’ll get introduced to the Spring Reactor project and its importance. The idea is to take advantage of the Reactive Streams Specification to build non-blocking reactive applications on the JVM. Using this knowledge, we’ll try to build a simple reactive application and compare it to a traditional blocking application. 2. Conventional APIs are blocking Modern applications deal with a high number of concurrent users Continue Reading

Spring Security: How it works internally

Reading Time: 5 minutes Definition Spring Security is a framework provided by Spring that helps to customize an access and authentication process. It plays a very crucial role in terms of securing the applications. Spring Security, mainly focuses on authentication and authorization to provide all benefits to java applications. It is very helpful and provides an easy approach to apply in real projects. And, permits to do custom modifications Continue Reading

Springboot all possible ways to read props from Configuration file.

Reading Time: 2 minutes Springboot YML/ Properties file Various properties can be specified inside your application.properties file or inside your application.yml file, the following ways to reading properties from YML or Properties file. Reading a single property Read bunch of properties then use can use @ConfigurationProperties. Read entire YML/Property file Visit following URL and here you can find more properties:https://docs.spring.io/spring-boot/docs/1.1.6.RELEASE/reference/html/common-application-properties.htmlhttps://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html In my case i’m using YML file Reading a Continue Reading