SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

SPRING CORE / NOTES</>↗
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 min read
SPRING CORE / NOTES</>↗
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 min read
SPRING CORE / NOTES</>↗
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 min read
SPRING SECURITY / NOTES</>↗
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 min read
STREAM API / NOTES</>↗
Stream API06 Jul 2026

How do I use Java Streams without making my code hard to read?

Using Java Streams readably is mostly about using them where they express intent clearly and avoiding “clever” pipelines that hide business logic. Good uses of Streams Streams are great when you are doing simple collection transformations: List<String> activeUserEmails = users.stream() .filter(User::isActive) .map(User::getEmail) .toList(); This reads almost like a sentence: From users, keep active ones, get […]

Wayan · 7 min read
SPRING BOOT / NOTES</>↗
Spring Boot05 Jul 2026

How do I build a REST API in Java using Spring Boot the right way?

The “right way” to build a REST API in Java with Spring Boot is not just about making URLs return JSON. A good REST API should be: Cleanly structured Easy to test Easy to maintain Validated properly Consistent in error handling Separated into controller, service, repository, entity, and DTO layers Built around HTTP semantics, not […]

Wayan · 18 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

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

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.