Skip to content
SparkTime, home

Tagged #Java backend

GuideTechnology

9 min read

Production Practices: Configuration, Logging, Docker and Health Checks for Spring Boot

Prepare the Job Application Tracker to run outside your laptop: configuration and secrets from the environment, useful logging, Actuator health checks verified on the running application, a multi-stage Dockerfile and a Compose file, and a production checklist. The Docker files are written but were not run in this environment.

GuideTechnology

29 min read

JPA and Hibernate: Entities, the Persistence Context, Spring Data and Flyway Migrations

Replace the in-memory repository with a real PostgreSQL database using JPA, Hibernate and Spring Data: map an entity, manage the schema with Flyway migrations, understand the persistence context and dirty checking, write queries, and read the SQL Hibernate actually generates, including a real failure only PostgreSQL revealed.

GuideTechnology

18 min read

Dependency Injection and Inversion of Control: The Idea Behind Spring

Understand dependency injection and inversion of control from first principles: wire objects by hand, build a tiny container, then see the real Spring container create beans, resolve ambiguity, manage scopes and lifecycle, and fail with the errors you will actually meet.

GuideTechnology

20 min read

HTTP, JSON and REST APIs: How Web Backends Talk

Understand what actually travels between a client and a Java backend: the HTTP request and response, methods and their guarantees, status codes, headers, JSON and how Java maps to it, and how to design a clean REST API, with real captured traffic and real JSON mapping.

GuideTechnology

30 min read

Project 2: Move the Expense Tracker to PostgreSQL with JDBC

Take the Expense Tracker CLI and add a PostgreSQL repository behind the same interface: an idempotent schema, a transactional bulk import, a connection pool, one shared contract test for every implementation, a fat jar, and an honest review.

GuideTechnology

25 min read

JDBC: Talking to a Database from Java

Learn JDBC, the standard way Java programs use a relational database: connecting with a driver, running queries with PreparedStatement, mapping rows, preventing SQL injection, transactions, error codes, batching and connection pooling, with every program run against PostgreSQL 18.

GuideTechnology

21 min read

SQL and PostgreSQL Fundamentals for Java Developers

Learn the SQL that backend developers use every day on PostgreSQL: tables and constraints, inserting, querying, joining and grouping data, transactions and isolation, indexes and query plans, and normalisation, with every statement run on a real PostgreSQL server.

GuideTechnology

29 min read

Project 1: Build an Expense Tracker CLI in Plain Java

Build your first complete Java application: a command-line expense tracker with a clear design, money handled correctly, a file-based repository behind an interface, automated tests, a Maven build, and a runnable jar, then review it honestly.