Stack · Java

Java & Spring Boot

The language of servers: the invisible part that receives requests, checks permissions, computes and saves.

I use it to build the servers of my projects, with Spring Boot, the most widely used framework in companies.

GET /stack/java200 OK
in short
The server side of an application
experience
Training, then two personal projects
status
open to opportunities
tools
Java · Spring Boot · JPA · JWT · Docker
used in
Mystery Query, Integration Inventory

In practice

A server-side safeguard

In Mystery Query, players ask the database questions in SQL. Before running them, the server rejects anything that could change or delete data.

request.json
{
  "caseId": 7,
  "sql": "DELETE FROM suspects"
}
QueryGuard.java
response.json

Code simplified for the demo.

Architecture

From click to database

The path of a request through the server. Click a step.

Angular screenDatabase

Controller

Receives the request and checks who is making it.

Technical detail

@RestController, @Valid validation, role-based @PreAuthorize.

In the field

Where I use it