Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

SPRING BOOT / CATATAN</>
Spring Boot07 Jul 2026

How do I use profiles for different Spring environments?

Spring profiles allow you to run the same application with different configurations depending on the environment, such as development, testing, staging, or production. For example, your development environment may use an in-memory database, while production uses MySQL or PostgreSQL. 1. What Is a Spring Profile? A profile is a named set of configuration settings that […]

Wayan · 7 menit baca
SPRING MVC / CATATAN</>
Spring MVC06 Jul 2026

How Do I Build REST APIs with Spring MVC?

Building REST APIs with Spring MVC In Spring MVC, you build REST APIs by defining controller classes that map HTTP requests to Java methods. In modern Spring Boot applications, this is usually done with @RestController. A typical REST API is organized like this: HTTP Request ↓ Controller ↓ Service ↓ Repository ↓ Database Each layer […]

Wayan · 8 menit baca
SPRING CORE / CATATAN</>
Spring Core06 Jul 2026

How do I use AOP in Spring for cross-cutting concerns?

In a Spring application, some logic does not belong to just one business feature. For example: Logging method calls Measuring execution time Checking security rules Managing transactions Auditing user actions Handling repeated exception logic These are called cross-cutting concerns because they “cut across” many parts of your application. Instead of copying the same logging, auditing, […]

Wayan · 15 menit baca
SPRING CORE / CATATAN</>
Spring Core06 Jul 2026

How do I use events in Spring applications?

In Spring, events let one part of your application publish something that happened, while other parts react to it without being tightly coupled. Typical use cases: Send an email after user registration Clear a cache after data changes Audit an action Trigger async background processing React to transaction completion Spring has built-in support through: ApplicationEventPublisher […]

Wayan · 7 menit baca
SPRING CORE / CATATAN</>
Spring Core06 Jul 2026

How do I write unit tests for Spring components?

Writing Unit Tests for Spring Components For Spring components, you usually want to test business logic without starting the full Spring application context. That means using JUnit 5 and Mockito for most unit tests. Use Spring’s test support only when you need Spring-specific behavior such as dependency injection, MVC request handling, configuration binding, or persistence […]

Wayan · 6 menit baca
SPRING SECURITY / CATATAN</>
Spring Security06 Jul 2026

How do I secure a Java web application with authentication and authorization?

Securing a Java web application typically means adding: Authentication — verifying who the user is. Authorization — deciding what the authenticated user can access. Session/token protection — keeping the login state secure. Transport and application hardening — HTTPS, CSRF protection, password hashing, etc. Since your stack includes Spring MVC / Spring Data JPA / Jakarta […]

Wayan · 7 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.