Spring Cloud interview Questions
What is JWT ? How to implement it using Spring Boot Security? For better understanding we will be developing the project in stagesDevelop a Spring Boot Application to expose a Simple REST GET API...
Spring Boot
What is JWT ? How to implement it using Spring Boot Security? For better understanding we will be developing the project in stagesDevelop a Spring Boot Application to expose a Simple REST GET API...
What is Spring Boot? Over the years spring has become more and more complex as new functionalities have been added. Just visit the page- https://spring.io/projects and we will see all the spring projects we...
JWT is a compact and safe way to transmit data between tow parties. The information can be trusted because it is digitally signed.
In this Spring Boot RestTemplate POST request in below code snippet,we will create a POST API and then test it by sending request body along with request headers using exchange() method.
OAuth2 is a widely used authorization framework that is supported by Spring. The OAuth 2.0 authorization framework is a protocol that allows a user to grant a third-party website or application access to the...
In Cryptography, SHA is cryptographic hash function which takes input as 20 Bytes and rendered the hash value in hexadecimal number, 40 digits long approx. Message Digest Class:To calculate cryptographic hashing value in Java,...
DataSource configuration is provided by configuration properties entries ( spring.datasource.* ) in application.properties file. The properties configuration decouples the configuration from the application code. This way, we can import the datasource configurations from even...
Let us see how to configure the embedded database engines like HSQL, H2 and Derby in Spring framework. Technologies used : Spring 4.1.6.RELEASE jUnit 4.1.2 Gradle Embedded databases used : HSQLDB 2.3.2 H2 1.4.187...
There are many situations where we require to fetch data from multiple databases and while using JPA sometimes it becomes challenging to create connections with multiple databases through a single application. Hence, in this...
Defining DataSource in Spring package com.javaskool.config; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.util.stream.Collectors; import javax.persistence.EntityManagerFactory; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; //import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;...
Recent Comments