SPRING CORE / CATATAN</>↗Spring Core29 Jun 2025
In Spring, managing dependencies and configurations is commonly done using Java-based @Configuration classes. These classes allow you to define the beans and their dependencies programmatically. Here’s a step-by-step guide on how to manage dependencies with @Configuration classes: 1. Use the @Configuration Annotation Mark your class with the @Configuration annotation. This tells Spring that the class […]
SPRING BOOT / CATATAN</>↗Spring Boot28 Jun 2025
Here’s a step-by-step guide for creating your first Spring Boot project using Spring Initializr: Step 1: Go to Spring Initializr Open the Spring Initializr website: https://start.spring.io/. You will see a friendly interface that allows you to configure your new Spring Boot project. Step 2: Configure Your Project Project Settings: Project Type: Choose either Maven or […]
SPRING CORE / CATATAN</>↗Spring Core27 Jun 2025
In Spring, the @Value annotation allows you to inject values from properties files or environment variables into your application. Here’s how you can use it step by step: 1. Add a properties or file to your project yaml Create a properties file, such as application.properties or application.yml, and add your key-value configurations. Example (application.properties): app.name=My […]
SPRING BOOT / CATATAN</>↗Spring Boot26 Jun 2025
Spring Boot and Spring Framework are closely related but serve distinct purposes in the world of Java development. Below is a comparison that highlights the key differences between the two: 1. Core Definition Spring Framework: A comprehensive framework that provides tools, libraries, and features to build a wide variety of Java applications. It includes modules […]
SPRING CORE / CATATAN</>↗Spring Core25 Jun 2025
In the Spring Framework, beans are defined with different scopes that govern their lifecycle and interaction with the container. The scope determines how many instances of a bean are created and how they are shared within an application. Common Bean Scopes in Spring Spring provides several bean scopes, and they are managed through the @Scope […]
SPRING BOOT / CATATAN</>↗Spring Boot24 Jun 2025
Spring Boot is a framework designed to simplify and speed up the development of Java-based applications, especially for web and microservices. It’s built on top of the Spring Framework but offers additional features to reduce the complexity of configuration, making it ideal for developers who want to quickly get started with production-ready applications. Below is […]