# springboot

Published articles for springboot.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How Understanding Request Flow in Spring Boot Changed the Way I Code

DevFeed: [How Understanding Request Flow in Spring Boot Changed the Way I Code](<https://devfeed.tech/articles/how-understanding-request-flow-in-spring-boot-changed-the-way-i-code-23021.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/how-understanding-request-flow-in-spring-boot-changed-the-way-i-code.html>)

Author: Mohammed

Published: 2025-12-03T02:02:20Z

Content type: article

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [backend](<https://devfeed.tech/tags/backend.md>), [backend-development](<https://devfeed.tech/tags/backend-development.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [database](<https://devfeed.tech/tags/database.md>), [di](<https://devfeed.tech/tags/di.md>), [file](<https://devfeed.tech/tags/file.md>), [flow](<https://devfeed.tech/tags/flow.md>), [java](<https://devfeed.tech/tags/java.md>), [java-advent](<https://devfeed.tech/tags/java-advent.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [layers](<https://devfeed.tech/tags/layers.md>), [logic](<https://devfeed.tech/tags/logic.md>), [programming](<https://devfeed.tech/tags/programming.md>), [project](<https://devfeed.tech/tags/project.md>), [request](<https://devfeed.tech/tags/request.md>), [spring](<https://devfeed.tech/tags/spring.md>), [spring-boot](<https://devfeed.tech/tags/spring-boot.md>), [springboot](<https://devfeed.tech/tags/springboot.md>), [structure](<https://devfeed.tech/tags/structure.md>)

### AI overview

Tracing a Spring Boot API request through the Controller, Service, Repository, and Database helped the author understand why the framework uses layers. The response returns through those layers. The excerpt describes controllers as focused on receiving requests and returning responses, with business logic in the Service and database interactions in the Repository; Spring Data JPA can generate most repository queries. The author says dependency injection reduces tight coupling and inversion of control manages object lifecycles. This personal account presents the flow as a way to make the architecture understandable and the application easier to organize and maintain.

### Source excerpt

When I first stepped into backend development, I believed programming was only about one thing: "If the output comes, the job is done." I bundled everything into one giant file -- controllers, logic, database access.I didn't understand why Spring insisted on layers or why DI, IoC, and annotations were so important. The project structure looked [...] The post How Understanding Request Flow in Spring Boot Changed the Way I Code appeared first on JVM Advent.

## Introducing springmock

DevFeed: [Introducing springmock](<https://devfeed.tech/articles/introducing-springmock-27275.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201707/springmock-v1/>)

Published: 2017-07-25T00:00:00Z

Content type: article

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [library](<https://devfeed.tech/tags/library.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [mockito](<https://devfeed.tech/tags/mockito.md>), [spring](<https://devfeed.tech/tags/spring.md>), [springboot](<https://devfeed.tech/tags/springboot.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The author introduces springmock, a library that injects Spock mocks into Spock Specification classes in Spring integration tests. It supports Spock and Mockito as mock and spy providers and reduces the boilerplate needed for mock injection.

### Source excerpt

I've been using springboot for some time now, but there was that one thing that bugged me a lot. While writing integration tests with mocks you are forced to use mockito as the mocking library. That's great and easy to understand if you are not using spock. The problem is that in spock there are better ways to mock stuff... Read more