07 dezembro 2022

Spring Security Tutorial

About: 
Spring Security is a powerful and popular framework for securing Java applications. In this video, we'll show you how to get started with Spring Security, by creating a simple authentication system using basic auth and JWT.

 

27 outubro 2022

SpringBoot - Switch between multiple databases with a custom annotation

Problem
enable multiple data sources to be connected to a single service.







SpringBoot - Write Microservice in less than 2 mins..


Pre-requisite :
  • Spring boot 2.7.0
  • Maven 3.6 +
  • Java 8 or later


Please add below dependencies in the project .
  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • spring-boot-starter-data-rest
  • lombok
  • H2
  • spring-boot-devtools







19 agosto 2022

Keystore vs. Truststore


Keystore is used to store private key and identity certificates that a specific program should present to both parties (server or client) for verification.

Truststore is used to store certificates from Certified Authorities (CA) that verify the certificate presented by the server in SSL connection.



Key differences
KeystoreTruststore
Keystore stores your credential. (server or client)Truststore stores others credentials (CA)
Keystore is needed when you are setting up the server side on SSLTruststore setup is required for the successful connection at the client side
Client will store its private key and identify certificate on KeystoreServer will authenticate the client against the certificate stored on the server’s Truststore
javax.net.ssl.keyStore is used to specify Keystorejavax.net.ssl.trustStore is used to specify Truststore.
Keystore passwords are stored in plaintext that is only readable by the specific group.Truststore passwords are stored in plaintext that can be read by everyone.
Keystore contains private and sensitive informationTruststore doesn’t contain private and sensitive information


Source: https://www.educative.io/answers/keystore-vs-truststore

22 fevereiro 2022

WebArticle - Installing Redis Server Using Docker Container









Set Password on Redis
We can define the password using the following command on client
cmd :: config set requirepass p@ss$12E45


Source:

12 janeiro 2022

SpringBoot - Service Discovery and Microservices Tutorial

About

About:
"Service Discovery. What is Service Discovery? In this series I will teach you how to build microservices with spring boot, spring cloud, docker and Kubernetes. In this video you will learn how to use service discovery Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are - Highly maintainable and testable - Loosely coupled - Independently deployable - Organized around business capabilities - Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organisation to evolve its technology stack."


Imagens
















Source: AmigosCode