Tutorials

Everything published on BitSnippets, grouped by topic. Courses are written in order, but each chapter is self-contained enough to be used as a reference.

New: the four-part stack, end to end

Angular, Spring Boot, MyBatis and PostgreSQL now each have a full course — plus the argument for why they belong together, a complete application built with all four, and a Docker and cloud deployment course to ship it.

Persistence & SQL

The data-access layer is where most Java performance bugs are born.

Course 15 chapters · complete Beginner → Advanced

The Complete MyBatis Tutorial

From your first SqlSessionFactory to interceptor plugins and Testcontainers-backed integration tests. One running schema is used throughout, so every snippet builds on the last.

Open the course FAQ & interview questions

Course 7 chapters · complete Beginner → Advanced

PostgreSQL for Application Developers

The database half of the stack: schema design that makes bad data impossible, indexes that are actually used, reading EXPLAIN output, and the operational facts — MVCC, vacuum, pooling and backups — that decide whether production stays up.

Open the course Why PostgreSQL?

Spring ecosystem

The default way to build a JVM backend service — and the framework whose "magic" causes the most confusion.

Planned

Spring Cloud for multi-service systems

Config server, service discovery, gateway and resilience patterns — and when you do not need any of them.

Planned

Spring Batch

Chunk processing, restartability, partitioning and job monitoring for real data volumes.

Planned

Messaging with Kafka and RabbitMQ

Listeners, retries, dead-letter topics, idempotency and the transactional outbox pattern.

Front end

The other half of a web application — and the half most backend developers are asked to maintain anyway.

Course 8 chapters · complete Beginner → Intermediate

Modern Angular

Standalone components, signals, the new control-flow syntax and typed HttpClient — Angular as it is written today, without the NgModule archaeology.

Open the course Why Angular?

Full-stack projects

Where the four courses meet: one application, built and shipped.

Project 6 chapters · complete Intermediate

Build an Order Management System

Angular + Spring Boot + MyBatis + PostgreSQL in one application: domain design, a schema with real constraints, mappers, a secured REST API with an explicit state machine, and an Angular front end driven by the server's rules.

Open the project Why this stack?

Course 5 chapters · complete Intermediate → Advanced

Containerisation & Cloud Deployment

Docker fundamentals, multi-stage images for Spring Boot and Angular, the whole stack under Compose, then a GitHub Actions pipeline deploying to Kubernetes or a managed platform — with probes, safe migrations and rollback.

Open the course

Build & tooling

Planned

Maven dependency resolution

Nearest-wins, dependency management, BOM imports and reading mvn dependency:tree fluently.

Planned

Gradle for Maven refugees

Configurations, the build cache, convention plugins and incremental task authoring.

Planned

Container-friendly Java images

Layered jars, CDS archives, jlink runtimes and JVM ergonomics inside cgroups.

Testing

Live

Spring Boot test slices

Covered in Spring Boot chapter 11: @WebMvcTest, @DataJpaTest and context caching.

Live

Database tests with Testcontainers

In MyBatis chapter 13 and Spring Boot chapter 11.

Planned

Contract testing for REST APIs

Keeping producer and consumer honest without a fragile end-to-end suite.

Performance

Partly live

Killing N+1 queries

Detection and fixes in MyBatis chapter 8 and Spring Boot chapter 8.

Partly live

Observability & metrics

Actuator, Micrometer and alerting in Spring Boot chapter 12.

Planned

JFR & async-profiler in production

Low-overhead profiling, flame graphs and finding the 3% of code that costs 80% of CPU.

Architecture patterns

Partly live

Repository or mapper?

The JPA vs MyBatis trade-off is covered in Spring Boot chapter 8.

Planned

DTO strategies that don't rot

Projection design, mapping libraries and versioned API payloads.

Planned

Hexagonal architecture, pragmatically

Ports and adapters without turning a CRUD service into a research project.