Category: Javaskool Category
Spring Security Kerberos is an extension of Spring Security for application developers to Kerberos concepts with Spring. Spring Security Kerberos Example How to create a spring security project If you want to create your...
Spring Security is a powerful and highly customizable authentication and access-control framework. It is the de-facto standard for securing Spring-based applications. Spring Security is a framework that focuses on providing both authentication and authorization...
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;...
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...
An SQL database can be initialized in different ways depending on what your stack is. Of course, you can also do it manually, provided the database is a separate process. Initialize a Database Using...
Spring Boot makes it really easy to manage our database changes in an easy way. If we leave the default configuration, it’ll search for entities in our packages and create the respective tables automatically....
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. If you want to create your own Spring Boot-based project, visit Spring Initializr, fill in your project...
Here, we will know how to implement our own Triplet class in Java. Actually, A Triplet is a container to store a triplet of three objects. Since JDK doesn’t provides any implementation of the...
we can see how to convert Set of Integer to Set of String in Java 8. Let’s use Java 8 Stream API to convert Set of Integer to Set of String. We can use...
SVG Introduction SVG is a short form of Scalable Vector Graphics. It is a graphic format in which the shapes are specified in XML. The XML is then rendered by an SVG viewer. Most...
Recent Comments