Backend & APIs

Every article filed under Backend & APIs.

·7 min read

Spring Boot File Upload Example, and What Really Happens to the File

A working Spring Boot file upload with curl output for every case: the 1MB limit's empty 413, the temp file, getBytes() heap cost and a real ../ escape.

Backend & APIs
·8 min read

Spring Boot Exception Handling, Tested Against Every Failure a Caller Sees

A Spring Boot exception handling example run against twelve failing requests — including the catch-all handler that turns every 405 into a silent 500.

Backend & APIs
·6 min read

Spring Boot Interview Questions for Experienced Developers, Settled by Running Them

Seven Spring Boot questions senior interviews ask, answered with real output — starting with the @Transactional method that threw and still committed.

Backend & APIs
·4 min read

Spring Boot Pagination and Sorting, and the Page You Should Not Return

Pageable and Page in two lines — then the runtime warning Spring Data logs about returning Page from a controller, and the COUNT query every page costs.

Backend & APIs
·8 min read

How to Secure a Spring Boot API with JWT (Without Writing a Filter)

Spring Security already parses and validates JWTs. Here is the whole setup — two beans and one line of DSL — plus what a short example quietly defers.

Backend & APIs
·8 min read

How to Build a REST API in Spring Boot, Including the Failures

Build a working Spring Boot REST API — GET, POST, 201 with Location — then see what your callers actually get back when the request is wrong, and fix it.

Backend & APIs
·9 min read

How to Create a Spring Boot Project (and What the Generator Actually Gives You)

Create a Spring Boot project with Spring Initializr, then read every one of the ten files it writes — and find out what the 19 MB jar you build actually holds.

Backend & APIs