MAVEN / NOTES</>↗Maven05 May 2025
In this guide, you’ll learn everything you need to know about Apache Maven—from what it is to how to configure it across different operating systems. What is Apache Maven? In simple terms, Maven is a powerful build and project management tool primarily used by Java developers. Compared to older build systems like Apache Ant, Maven […]
HIBERNATE / NOTES</>↗Hibernate05 May 2025
1. Introduction In this post, we’ll walk through the process of setting up a basic Hibernate project using Maven. Hibernate is a powerful ORM (Object-Relational Mapping) tool for Java, and it’s often used to simplify database interactions in enterprise applications. 2. Prerequisites Java JDK 17 or later Maven installed A code editor (e.g., IntelliJ IDEA, […]
SPRING CORE / NOTES</>↗Spring Core05 May 2025
In Spring, you can define and inject dependencies using annotations, which simplifies the process of configuring beans and their relationships. Here’s how you can do it step by step: 1. Define a Dependency with @Component To define a class as a Spring-managed component (or bean), you annotate it with @Component, which makes the class eligible […]
JAVA 10 / NOTES</>↗Java 1005 May 2025
In Java 10, root certificates are included as part of the cacerts file in the Java Runtime Environment (JRE) to establish trust for security protocols like TLS/SSL. Java includes a default set of trusted Certificate Authorities (CAs) in this file. Here’s how you can work with the root certificates in Java 10: Accessing the Root […]
CONCURRENCY / NOTES</>↗Concurrency05 May 2025
To control access to shared resources in a multithreaded environment, a Semaphore is frequently used, which is part of the java.util.concurrent package. A semaphore manages a set number of permits that control how many threads can access a shared resource simultaneously. Threads acquire permits before accessing the resource and release the permits after they are […]
JSCH / NOTES</>↗JSch04 May 2025
When using JSch (Java Secure Channel) for SSH key-based authentication with a passphrase, you need to set your private key file (which is protected by the passphrase) and optionally the passphrase itself. Below is an example demonstrating how to configure key-based authentication using JSch: Code Example package org.kodejava.jsch; import com.jcraft.jsch.*; public class JSchKeyBasedAuthentication { public […]