mrkeyoor.comAsk

spring-projects/spring-boottested 24 Oct 2026commit 11778bd

spring-boot review

Use Spring Boot if your Java team wants Spring's application conventions and will own the configuration it replaces.

  • Safety failed
14 sto install
  • 252 packages
Webevaluationupdated 19 Nov 2026
+95stars / 7d

Spring Boot helps developers build Java applications and services using Spring, with defaults for embedded servers, configuration, health checks and metrics. Applications can replace those defaults, which makes understanding the resulting configuration part of maintaining the service.

Verdict

Use Spring Boot if your Java team wants Spring's application conventions and will own the configuration it replaces. Avoid it if you expect custom mappers and HTTP clients to retain every automatic default. Our Antora installation recorded 252 dependencies in 14 seconds; the later deployment attempt stopped at its Compose requirement. The useful adoption exercise is a representative Java service with a database, outgoing HTTP calls and observable shutdown behavior.

spring-boot infographic: build Java applications with Spring defaults, plus our test result and who it suits
Tested 24 October 2026: the source install took 14 s.

We ran it

Lab card: what happened when we ran spring-boot
Lab card from our sandbox run
Screenshot of spring-boot (spring.io/projects/spring-boot)
spring.io/projects/spring-boot
Install✓ · 14s252 packages · 57 MB
Buildn/ano build script
Testsn/ano test script
Known vulns63 critical · 1 high · 2 moderate · 0 low (npm audit)
Repo11072 files~766,112 lines of source · 33.2 MB · 16 CI workflows

Answers from our run

Does spring-boot build from source?

Dependencies installed in 14 seconds (252 packages), and the project has no separate build step. We cloned commit 11778bd into a clean Debian container with 3 CPUs and no project-specific setup.

Does spring-boot have tests you can run?

Not through a standard command: the project exposes no test script or target that our harness could run.

Does spring-boot have known vulnerabilities in its dependencies?

npm audit flagged 6 known advisories in the dependency tree, including 3 critical at the time of our run.

Who should not use spring-boot?

Teams expecting application-defined mappers and HTTP clients to inherit every automatic configuration choice.

What are the alternatives to spring-boot?

FastAPI, NestJS. Use Spring Boot if your Java team wants Spring's application conventions and will own the configuration it replaces.

Setup4/5Our source checkout installed in 14 s with 252 dependencies, but we did not run a README task.Editor’s note: The installation covered Antora dependencies, and the deployment runner stopped before a supported Java application ran.
Docs2/5The 5,222-character README has no usage instructions or examples.Editor’s note: The README and starter guides were read, but their Java application procedures were not reproduced.
Community5/5Last push on 2026-11-17, 81,910 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Sampled historical issue replies show concrete assistance without measuring current response times or production adoption.
Maturity4/5Latest release v4.1.2 on 2026-10-22 and repository created 2012-10-19.Editor’s note: Historical application reports and documentation do not supply a Java workload or current compatibility assessment.

How we score

Discussed on

  1. hnAI PR adds auto generated comments to whole Spring Boot Project38 points
  2. hnAI commented the entire Spring Boot codebase21 points

Who it’s for

Java teams that want Spring's application conventions and can maintain custom configuration.
Developers building services with database integration, application monitoring or structured logging.

Who it’s NOT for

Teams expecting application-defined mappers and HTTP clients to inherit every automatic configuration choice.
Teams that want a backend in Python or TypeScript rather than Java and Spring.

Setup reality

Our October 24, 2026 run at commit 11778bd installed the npm project in ./antora/ in 14 seconds: 252 dependencies and 57 MB on disk. Build and tests were skipped because that workspace exposed neither target. npm audit reported 6 known vulnerabilities: 3 critical, 1 high and 2 moderate. These measurements cover the Antora documentation workspace.

The README directs application developers to its getting-started documentation and says they do not need to build Spring Boot from source. Its contributor build uses the Gradle wrapper and requires JDK 25. The November 19 attempt stopped because the runner required a Compose file and found none; teardown reported ok. The October sandbox configuration recorded 3 CPUs, 8 GB RAM and image label lab-node:22.

Our run installed 252 dependencies in Spring Boot's Antora documentation workspace in 14 seconds, using 57 MB on disk, according to our October 24 measurements. The November 19 deployment attempt stopped at its Compose requirement. For a Java team considering Spring Boot, the clearest decision in the application reports is who owns configuration after a default is replaced. Use it if your team wants Spring's conventions and can maintain those replacements; avoid it if you expect every custom component to inherit the original defaults automatically.

What people use spring-boot for

Spring Boot users describe microservices, reactive tracing migrations, database integration tests and separate application logs in its issue tracker. These reports connect the framework to specific application work: stopping services under load, preserving tracing fields, checking saved records and routing logs to different files. They also show where application requirements lead developers beyond the README's controller example and into configuration decisions.

Who used it What they were doing What happened
The reporter of #4657 and tkvangorder Load-testing Spring Boot and Spring Cloud microservices Shutdown and node removal produced errors; the reporter used a shutdown sequencing workaround. Microservice shutdown discussion
sanderino666 and codependent Moving reactive applications from Sleuth to Micrometer Tracing with Boot 3 Trace and span identifiers disappeared from reactive logs; the discussion covered context propagation and client construction. Reactive tracing migration
igormukhin and hashpyrit Testing persistence and transaction rollback with real repositories igormukhin checked saved database records; hashpyrit reported a delegating Mockito mock for real persistence with an injected failure. Repository testing discussion
marceloverdijk Writing application and Logstash/Elasticsearch logs separately Used a custom logback.xml for separate files and layouts while requesting easier environment configuration. Multiple logging outputs

The Spring Boot README describes stand-alone Java applications started with java -jar and traditional WAR deployments. Its example combines a controller, SpringBootApplication and SpringApplication.run in one class. The issue reports extend that entry point into service operation: a database transaction, an outgoing request or a second log destination introduces behavior that the application team must choose and maintain.

What happened when we ran it

Our November 19, 2026 attempt failed its safety step because none of compose.yaml, compose.yml, docker-compose.yaml or docker-compose.yml existed, as recorded in the Compose requirement failure. The runner required one of those files before proceeding. Its label "unsafe repo" refers to that requirement. The failed step identifies the runner's stopping condition rather than an application security defect.

The November run summary says it deployed with its own Docker Compose and bound every port to 127.0.0.1. That summary conflicts with the failed safety step. We use the failed step as the deployment outcome and retain the summary as contradictory bookkeeping. The next recorded result is teardown: ok, which records cleanup after the attempt.

The October 24, 2026 sandbox selected the npm project in ./antora/ at commit 11778bd. Its dependency installation succeeded in 14 seconds, recording 252 dependencies and 57 MB on disk. Build and tests were skipped because that selected workspace had neither target. The table preserves the installation, audit and repository-scan results separately so that the dependency installation does not become a claimed Java build.

Recorded check Result How to read it
npm install in ./antora/ Succeeded in 14 seconds; 252 dependencies; 57 MB Dependency installation in the Antora workspace
Build No build script/target; skipped The harness skipped the selected workspace's build
Tests No tests script/target; skipped The harness skipped the selected workspace's tests
npm audit 6 known vulnerabilities: 3 critical, 1 high, 2 moderate, 0 low Findings in the installed npm dependency tree
Checkout scan 11,072 files; about 766,112 source lines; 33.2 MB Repository size before dependency installation
Repository signals 16 CI workflow files; no Dockerfile; no tests directory detected Results of the harness's file detection
November safety step Failed because the required Compose file was absent The deployment runner stopped at its prerequisite
November teardown ok Recorded cleanup outcome

The October sandbox configuration recorded 3 CPUs, 8 GB RAM and image label lab-node:22. The checkout scan and dependency installation describe different stages: 33.2 MB belongs to the checkout, while 57 MB belongs to the installed dependency measurement. Likewise, the scan's tests-directory result is a file-detection result; the executed steps remain the npm installation and audit, with build and tests explicitly skipped.

Where people get stuck: replacing a default changes who configures it

An application-defined ObjectMapper caused the /actuator/info serialization failure described in issue #26859. oridool traced the problem to a mapper that replaced the default without loading the Java time converters needed for Instant. ObjectMapper converts objects to JSON, and Instant represents a timestamp. The failure appeared during the Boot 2.5 upgrade, but the reporter's investigation identified the application's replacement bean.

oridool described two remedies: remove the custom ObjectMapper or register JavaTimeModule on it. The discussion explains that defining a mapper switches off Boot's Jackson auto-configuration, leaving the application-defined object in control. That is the practical ownership change: a replacement bean is also a decision about which configuration your application supplies. Restoring the default and completing the custom configuration are different ways to resolve the reported failure.

Historical report Failure or friction Response recorded in the discussion
Boot 3 reactive tracing, #33372 Missing traceId/spanId and confusion over outgoing correlation Use the auto-configured WebClient.Builder; the discussion also describes tap(), handle() and context restoration for logging. Tracing discussion
Boot 1.4.1 repository spies, #7033 @SpyBean failed against a Spring Data repository Database-result assertions, mocks and delegation were discussed. Repository testing discussion
Boot 2.7 and SnakeYAML 2.0, #34405 YAML loading raised NoSuchMethodError after a dependency override Maintainers suggested application.properties without SnakeYAML where suitable; the reporter corrected the Boot 3 failure claim. SnakeYAML discussion
Multiple log files, #1788 Separate layouts and environment configuration required custom logging work marceloverdijk used logback.xml. Logging configuration discussion

Reactive tracing involves both client construction and logging context. In issue #33372, codependent described moving from Sleuth to Micrometer, while the discussion addressed the auto-configured WebClient builder and context-aware callbacks. A trace identifier connects related work; MDC supplies logging context fields. For a migration exercise, inspect both the outgoing request's correlation and the fields printed inside reactive callbacks, rather than treating one visible identifier as the whole result.

Shutdown under load and database fetching need application decisions

Stop accepting new requests before draining active work and closing resources. wilkinsona's shutdown explanation in #4657 supplies that ordering. Separately, the OSIV discussion in #7107 treats database fetching as an architectural decision. Together, those discussions identify two application responsibilities: deciding when work may enter a stopping service and deciding where database reads belong during request processing.

The reporter of issue #4657 encountered "entitymanager closed and others" during microservice load tests. An entity manager is the application's database persistence interface. tkvangorder described another ordering problem involving an embedded server and messaging infrastructure. The historical Tomcat workaround pauses the connector and waits for its thread pool before application-context destruction, preserving the resources needed by work already in progress.

For a shutdown exercise, place a database operation in flight and stop one service instance. Record the HTTP response, the persisted result and the order in which resources close. Those observations answer different questions: whether the request completed, whether its database work committed and whether shutdown interrupted a dependency. The sequence described in #4657 gives the exercise a concrete operational target rather than relying on the process's exit alone.

Open Session in View keeps a persistence context available while a web response is produced. In issue #7107, vpavic favored explicit fetching and transaction boundaries, while odrotbohm defended its convenience and discussed selective configuration. The warning request closed in favor of PR #7125. For a database-backed API, make the fetching boundary an explicit design choice and inspect the queries issued during response generation.

Security alerts need the affected module and usage

Our October npm audit reported 6 known vulnerabilities in the installed Antora dependency tree, including 3 critical findings, in the documentation-workspace measurement. The audit belongs to that npm installation. The distinction between a scanner's dependency finding and an application's affected module also appears in the historical SLF4J discussion, where users and maintainers worked through which logging artifact carried the reported vulnerability.

In issue #12649, jhigueras said dependency-check alerts stopped their security pipelines. snicoll distinguished slf4j-ext from slf4j-api and explained that Boot itself did not depend on the vulnerable module. After that exchange, jhigueras planned a false-positive exception. The useful sequence is to identify the artifact, identify its application usage and then choose an exception, removal or dependency change that addresses that specific finding.

The same thread records a historical startup failure with Logback 1.3 alpha: NoClassDefFoundError for org/slf4j/impl/StaticLoggerBinder. Maintainers discussed Log4j2, avoiding the module path and disabling Boot's logging integration. Issue #34405 records a different override failure, a SnakeYAML NoSuchMethodError. These incidents make compatibility checks part of a dependency change, alongside the security reason for making it.

Spring Boot vs FastAPI, NestJS and configuration alternatives

FastAPI builds Python APIs using standard Python type hints. NestJS builds backends in TypeScript on Node.js. The FastAPI README and NestJS README establish those ecosystem choices. Choose between these candidates first on the language and framework your team intends to maintain. Inside an existing Spring application, the more immediate comparison may concern logging, request processing or repository testing rather than a language change.

Choice Reason to consider it Evidence for the decision
Spring Boot Java applications using Spring conventions The README describes Java applications, embedded servers and operational features. Spring Boot README
FastAPI APIs maintained in Python Its README describes Python APIs based on standard type hints. FastAPI README
NestJS Backends maintained in TypeScript and Node.js Its README identifies the language and runtime. NestJS README
MVC or WebFlux Request-processing and tracing requirements The Boot 3 report shows different logging outcomes in the reporter's MVC and WebFlux examples. Tracing examples
YAML or properties Whether the application needs YAML configuration Maintainers suggested excluding SnakeYAML and using properties where appropriate. Configuration options
Repository spy or database assertions Interaction checks or persisted behavior Users described database assertions and delegation for their integration tests. Testing choices

On X, ccodyy69's backend-choice post lists Express.js, FastAPI, NestJS, Spring Boot and Gin. That question places Spring Boot among several language ecosystems. For an existing service, identify the behavior you need to preserve before considering a replacement: the mapper's serialization, the outgoing trace correlation or the transaction outcome gives the comparison an application requirement to answer.

Outdated claims, corrected

The SnakeYAML reporter retracted the Boot 3 failure claim in issue #34405, saying the SnakeYAML 2.0 test actually worked with Boot 3.0. The opening report had named both Boot 2.7.4 and 3.0.0. Keeping the correction beside the original version claim prevents the Boot 2.7 complaint from being repeated as the reporter's final Boot 3 result.

In issue #26859, eranf91 suggested the serialization fix belonged in Spring, but oridool identified the application's custom ObjectMapper. The maintainer explained the resulting auto-configuration change. In issue #12649, the security discussion likewise narrowed the affected artifact: slf4j-ext and slf4j-api are separate modules. Both corrections replace a framework-wide explanation with the specific component identified in the discussion.

Waiting for an active-request counter to reach zero also needed correction. In issue #4657, wilkinsona explained that new requests could arrive between the counter reaching zero and shutdown completing. Stop acceptance first, drain active requests next and then close resources. That ordering answers the proposed counter-only approach directly and supplies the shutdown decision used earlier in this review.

FAQ

spring-boot-starter-parent is configured as Maven's parent, and the Maven plugin guide's example uses version 4.1.2. The starter catalog also distinguishes artifact names, including webmvc and the deprecated web starter. These answers connect the parent and starter questions to the documented release example, then address the shutdown and logging questions raised in the historical issue discussions.

How do I configure spring-boot-starter-parent in Maven, and which parent version should I use?

Set org.springframework.boot as groupId and spring-boot-starter-parent as artifactId under parent; the guide's example selects 4.1.2. The guide says additional managed starters can omit their version numbers. It also describes importing spring-boot-dependencies when a project uses another parent, preserving dependency management while leaving plugin management to the project.

How do I add spring-boot-starter-web to a Maven project?

The coordinates are org.springframework.boot:spring-boot-starter-web, and the starter catalog marks that artifact deprecated in favor of spring-boot-starter-webmvc. The catalog describes the older web starter as Spring MVC with Tomcat as the default embedded container. Its webmvc entry names Spring MVC and Tomcat directly, giving new applications a documented artifact choice instead of relying on an older tutorial's dependency name.

What is the difference between spring-boot-starter-webmvc and spring-boot-starter-web?

The starter catalog describes webmvc as Spring MVC with Tomcat and marks web deprecated in its favor. The web entry also names Spring MVC and Tomcat. The concrete distinction established by these entries is the documented replacement direction; both descriptions identify the same web framework and embedded server, rather than contrasting MVC with the separate WebFlux starter.

Which starter does the captured catalog list for AspectJ support?

spring-boot-starter-aspectj is the artifact the starter catalog lists for aspect-oriented programming with AspectJ. It appears among application starters under the org.springframework.boot group. The catalog also lists spring-boot-starter-aspectj-test for testing that capability. These entries answer which artifacts the catalog names for AspectJ, keeping the dependency choice tied to its stated purpose rather than inferring an artifact relationship from the older AOP search term.

How do I use spring-boot-starter-validation?

spring-boot-starter-validation supplies Java Bean Validation with Hibernate Validator, according to the starter catalog. Add that dependency when selecting this validation capability for the application. The catalog lists validation separately from the web starters, and the Maven parent documentation explains how managed dependencies receive their versions from Spring Boot's dependency management.

How do I add monitoring with spring-boot-starter-actuator?

spring-boot-starter-actuator is the catalog's production starter for monitoring and managing an application, as described in Spring's starter documentation. In oridool's Boot 2.5 report, the /actuator/info endpoint exposed a serialization problem in an application-defined mapper. Adding the starter and maintaining custom serialization are separate configuration tasks in that reported application.

How can I shut down a Spring Boot service gracefully while requests are still running?

Stop accepting new work, wait for active requests to complete and then close resources, following wilkinsona's explanation in #4657. The historical Tomcat workaround pauses its connector before waiting for the thread pool. A representative service exercise should record the in-flight response and database result together, using that sequence as the behavior to inspect.

Is the embedded server's shutdown order guaranteed?

Closing the application context triggers embedded-container shutdown in the lifecycle explanation discussed in issue #4657. Participants raised resource-ordering problems involving active requests and messaging infrastructure. The thread's concrete response is the connector-pause and request-draining sequence, which addresses the reported resource lifetime problem before application-context destruction proceeds. That historical sequence is the operational guidance discussed here.

Should Open Session in View be enabled by default, and what are its architectural and performance trade-offs?

Participants in issue #7107 disagree: vpavic favors explicit fetching, while odrotbohm argues for developer convenience and selective configuration. OSIV keeps persistence access available during response production. Choose the fetching and transaction boundary deliberately, then inspect the queries generated by the application's responses. The discussion frames that choice as architecture rather than a universal preference.

How can I work around historical SLF4J and Logback compatibility problems when using the Java module path?

Maintainers in issue #12649 suggested Log4j2, avoiding the module path or disabling Boot's logging integration for the historical Logback alpha problem. The reported startup error named StaticLoggerBinder. Those options belong to that compatibility discussion, where the logging implementation, module path and Boot integration each represented a separate configuration choice.

Where do Spring Boot logs go if I disable Boot's logging system?

Disabling Boot's logging integration leaves logging configuration to the application in the approach discussed in issue #12649. The output destination therefore comes from the logging backend configuration the application supplies. The separate multiple-file discussion in #1788 gives a concrete example: marceloverdijk used a custom logback.xml for different files and layouts.

What we have not tested yet

The October run installed Antora dependencies; the November attempt stopped at the Compose requirement before a supported Java application result. We have no Java build or test result, request latency, startup time, runtime memory, transaction-correctness result, shutdown-under-load measurement or comparative benchmark against FastAPI or NestJS. Actual runtime and operating-system versions require raw toolchain logs. The six npm advisories also lack package-level exposure analysis here.

The Maven documentation example uses 4.1.2, while the measured checkout was commit 11778bd. The lab results therefore are not an execution assessment of the v4.1.2 release. Closed historical issues do not establish current defects, delivered fixes or compatibility across release lines. That boundary includes automatic reactive tracing, coroutine propagation, repository spying, SnakeYAML support, environment-specific logging properties and the OSIV default discussed in the historical threads. The AspectJ catalog entry does not establish an alias or migration relationship with spring-boot-starter-aop.

The historical Thymeleaf 3 beta report in issue #4393 names NoClassDefFoundError for org/thymeleaf/resourceresolver/IResourceResolver and a user's integration gist excluding the layout dialect. The immutable Kotlin configuration discussion in issue #8762 describes MiXiT configuration and constructor-binding work. Neither discussion supplies a completed current-version assessment here. The suggested environment-specific logging includes were explicitly untried by their commenter.

The opening of Spring Boot Tutorials introduces framework history. The Bilibili search results list 岱军's VSCode introduction and 小枫Geek's two-database video, but their procedures were not reproduced. These checks include no Reddit account of a completed deployment. Tutorial openings, listing titles and backend preference posts supply neither deployment measurements nor production adoption evidence; search volumes and rankings are also unknown.

How can I customize Spring Boot's launch script to use exec java -jar?

The captured discussion provides no working launch.script customization. czyoshida-naoko's question in issue #4657 asks how to pass exec to launch.script, but the discussion available here contains no configuration procedure to reproduce. The README's java -jar launch mode is a separate documented fact, not an answer to that script customization question.

The next useful exercise is one Java service with a real database, an outgoing HTTP call and the required logging fields. Record an in-flight request during shutdown, its persisted data and the downstream trace together. That exercise directly addresses the configuration, tracing and resource-ordering decisions raised by the application reports, while producing an application result distinct from the Antora dependency installation.

Alternatives

ProjectWhat it isPick it when
FastAPI gh↗A Python API framework based on standard Python type hints.Choose FastAPI when Python is the language your API team wants to maintain.
NestJS gh↗A TypeScript framework for building backends on Node.js.Choose NestJS when your backend belongs in TypeScript and Node.js.

Sources

  1. Spring Boot README
  2. Maven parent configuration
  3. Starter catalog
  4. FastAPI
  5. NestJS
  6. Shutdown discussion
  7. Tracing migration
  8. Custom Jackson mapper

More web reviews