Showing items from java

Spring Boot Hello World Part 3

Java is still one of the most widely used programming languages in the world, and Spring Boot is the de-facto framework for building production-ready services with it. Surprisingly, even though I’ve worked with Java before, I had never actually touched Spring Boot.

That changes today.

In this series, we’ll build a simple CRUD API for tasks step by step.

In Part 1 we built a simple CRUD API for tasks using Spring Boot and in Part 2 we tested it. In this part, we’ll add Redis to persist our data.

Continue Reading

Spring Boot Hello World Part 1

Java is still one of the most widely used programming languages in the world, and Spring Boot is the de-facto framework for building production-ready services with it. Surprisingly, even though I’ve worked with Java before, I had never actually touched Spring Boot.

That changes today.

In this series, we’ll build a simple CRUD API for tasks step by step.

By the end of this part, you’ll have a running Spring Boot application that you can query with curl or Postman — your first working “Hello World” REST service.

Continue Reading

Spring Boot Hello World Part 2

Java is still one of the most widely used programming languages in the world, and Spring Boot is the de-facto framework for building production-ready services with it. Surprisingly, even though I’ve worked with Java before, I had never actually touched Spring Boot.

That changes today.

In this series, we’ll build a simple CRUD API for tasks step by step.

In Part 1 we built a simple CRUD API for tasks using Spring Boot. In this part, we’ll add fast, isolated web tests for the controller using @WebMvcTest and MockMvc. These tests spin up only the Spring MVC slice (no full application context or server), so they’re quick and focused.

Continue Reading