Spring checks
The Spring panel runs a fixed, on-demand ruleset against your application's running Spring context and Environment. It takes a read-only snapshot of selected bean groups — Jackson ObjectMappers, Executors and TaskExecutors, DataSources — plus feature flags, then evaluates a curated set of configuration and best-practice checks. It never mutates the context, intercepts live traffic, or surfaces secrets.
This advisor complements the Architecture panel. Architecture statically analyzes compiled bytecode with ArchUnit, while this one inspects the live, wired runtime context.
Because it runs inside the started application, its evidence is limited by design. A configured default is not proof of effective execution, a bean definition is not proof that the bean is used, and a production-like profile name does not establish deployment topology. Concrete configuration concerns and optional INFO opportunities are both useful, but an optimization suggestion promises no measured benefit and requires no change.
Reading more than the preview
Reports keep ten-entry sampleViolations previews alongside the full violationCount. View violations, or GET <api>/spring/rules/{id}/violations?scanId=...&offset=0&limit=100, reads additional retained details without inspecting the context again. Check retention truncation separately from coverage and score eligibility. See snapshot, retention, and MCP/CLI retrieval.
Availability and bounds
The panel is available whenever the Spring advisor is enabled. Scanning is explicit and on demand, and a GET returns the cached report.
Collection uses bounded, non-eager bean metadata. It does not create lazy beans, invoke application customizers, open database connections, or probe remote services. Missing required evidence is unevaluated rather than a successful check, and inspection failures and invalid bindings are reported without raw exception messages or property values.
Rules that mention production-like profile names (SPRING-PROFILE-002, SPRING-DATA-001 and SPRING-DATA-002) match an effective profile named prod, production or staging, or one that starts with prod- or ends with -prod or -production, ignoring case. Configured default profiles apply when no profile is active.
Scheduler, cache-provider, and servlet OSIV gaps keep specific bounded explanations in both the inspected observations and the coverage limitations. A rule evaluation failure is identified separately from unavailable evidence, and neither exposes exception messages or raw settings. Independently observed findings survive incomplete registration or provider coverage.
Discovery efficiency (unreleased)
Repeated bean types share application-type inspection, and async discovery reuses inspected types and methods within one scan. Once default async executor applicability is established, it does not inspect unrelated declarations. Bean, member, and hierarchy limits remain enforced; genuine member-budget exhaustion is reported explicitly. Incomplete coverage still cannot pass a required CI assessment, even with no HIGH findings. Read bootui spring report --json for the cached coverage limitations; this command does not rescan.
Scheduling recognizes the exact, initialized, unadvised Spring Modulith 2.1.2 and 2.2.0 staleness-monitor configurers: their verified implementation only adds registrations, never changes scheduler routing. Other versions remain unknown until verified. An enabled monitor contributing an unsupported runnable still leaves coverage incomplete.
The HTTP timeout rule neutrally skips confirmed absence of managed client/builder/service-group targets in a complete root inventory. It does not claim that programmatic HTTP clients cannot exist, and the skip adds no completion or usability credit. Parent contexts, opaque products, custom targets, linkage failures, and incomplete discovery remain unknown.
The same ruleset on MVC and WebFlux
Servlet OSIV and servlet multipart guidance are inapplicable on WebFlux, and the reactive check (SPRING-REACTIVE-003) is inapplicable on MVC.
Virtual-thread advice distinguishes Boot task execution and Reactor's shared boundedElastic scheduler (which Boot 4's ReactorEnvironmentPostProcessor switches to virtual threads when spring.threads.virtual.enabled=true) from reactive event loops. Client advice distinguishes observable Boot settings from unknown per-client customization.
Severity scale
| Severity | Meaning |
|---|---|
| CRITICAL | Reserved by the shared report contract. No Spring rule infers it from profile names or management-port equality. |
| HIGH | A setting that commonly causes problems and usually needs attention before production. |
| MEDIUM | A hardening or correctness gap that warrants review. |
| LOW | Lower-impact hygiene or optimization findings. |
| INFO | An informational prompt where the right fix depends heavily on project context. |
A SCANNED report can still contain unknown observations or analysis errors. Usable known-findings scores retain those limitations under the shared score eligibility policy.
The results panel lists findings ordered by severity, finding count, and rule ID. The advisor score applies the shared severity penalty to every concrete finding, not once per violated rule, and dismissing a rule removes all of its findings from the score.
Filter the list, then jump to a check — the detail below narrows to match.
SPRING-WIRING-001MEDIUMReview bean definition overriding permissionSPRING-WIRING-002MEDIUMReview circular-reference permissionSPRING-WIRING-003INFOReview default JSON mapper selectionSPRING-WIRING-004INFOReview default async executor selectionSPRING-WIRING-005INFOReview default DataSource selectionSPRING-WIRING-006INFOReview default imperative transaction managerSPRING-WIRING-007LOWReview RestTemplate migrationSPRING-WIRING-008LOWReview default-package application beansSPRING-WIRING-009LOWReview public mutable singleton fieldsSPRING-WIRING-010HIGHEnable resilience processing for `@Retryable` and `@ConcurrencyLimit` beansSPRING-WIRING-011HIGHEnable infrastructure for `@Async`, `@Cacheable`, and `@Transactional` beansSPRING-WIRING-012MEDIUMReview `@Scheduled` methods without scheduling infrastructureSPRING-CONFIG-002LOWReview broad verbose logging configurationSPRING-CONFIG-003MEDIUMReview renamed or removed Boot 4 propertiesSPRING-CONFIG-004INFOConsider a stable application nameSPRING-CONFIG-005MEDIUMReview globally ignored missing configurationSPRING-CONFIG-006INFOReview Jackson 2-compatible defaultsSPRING-CONFIG-007LOWReview the deprecated Jackson 2 auto-configurationSPRING-CONFIG-008INFORemove the properties migrator after migratingSPRING-PROFILE-002INFOReview DevTools packaging for production-like profilesSPRING-PROFILE-003INFOReview disabled profile-name validationSPRING-PERF-001INFOConsider virtual threads for applicable blocking workSPRING-PERF-002INFOReview pooled executor routingSPRING-PERF-003LOWReview Framework default async fallbackSPRING-PERF-005INFOReview single-thread scheduler overlapSPRING-PERF-006LOWReview an unbounded default async queueSPRING-PERF-007INFOReview virtual threads on a JDK before 24SPRING-PERF-008MEDIUMReview `applicationTaskExecutor` back-off when virtual threads are enabledSPRING-PERF-009LOWReview task pool properties ignored under virtual threadsSPRING-PERF-011MEDIUMReview incomplete task executor or scheduler shutdown termination settingsSPRING-CACHE-001INFOReview concurrent-map cache capacitySPRING-WEB-001INFOConsider origin response compressionSPRING-WEB-002MEDIUMReview immediate or zero-grace shutdownSPRING-WEB-004MEDIUMReview configured fallback error detailsSPRING-WEB-005INFOReview Boot HTTP client timeout policySPRING-WEB-007LOWReview a Tomcat cap with a virtual executorSPRING-WEB-008LOWReview an unlimited multipart request sizeSPRING-JPA-001MEDIUMReview servlet Open Session in ViewSPRING-DATA-001MEDIUMReview in-memory JDBC with production-like profilesSPRING-DATA-002MEDIUMReview in-memory R2DBC with production-like profilesSPRING-MGMT-001MEDIUMReview host wildcard Actuator exposureSPRING-MGMT-002MEDIUMReview explicitly exposed sensitive Actuator endpointsSPRING-MGMT-003MEDIUMReview Actuator values and health detailsSPRING-MGMT-004HIGHReview granted heapdump or shutdown web accessSPRING-REACTIVE-003LOWReview explicitly unlimited codec aggregation
Bean wiring
SPRING-WIRING-001 - Review bean definition overriding permission
- Severity: MEDIUM
- Detects: The running bean factory permits bean-definition overriding. Programmatic factory configuration can differ from
spring.main.allow-bean-definition-overriding; permission is not evidence that an override actually occurred. - Recommendation: Keep overriding disabled unless it is intentional, and use distinct names where accidental replacement should fail fast.
- Learn more: https://docs.spring.io/spring-boot/reference/features/spring-application.html
SPRING-WIRING-002 - Review circular-reference permission
- Severity: MEDIUM
- Detects: The running bean factory permits circular references. This is not proof of a dependency cycle, and the current Environment alone does not establish the factory's startup configuration.
- Recommendation: Prefer explicit dependency boundaries and keep circular-reference resolution disabled unless it is deliberately required.
- Learn more: https://docs.spring.io/spring-boot/reference/features/spring-application.html
SPRING-WIRING-003 - Review default JSON mapper selection
- Severity: INFO
- Detects: Multiple candidates within the same relevant mapper type have unresolved default candidate metadata. Jackson 2
ObjectMapperand Jackson 3JsonMapperare separate groups: one of each is not an ambiguity. Candidate flags and aliases are considered; qualifiers, priorities and injection-point names prevent a blanket conclusion about injection. - Recommendation: Review the intended default and qualified consumers. For Boot's Jackson 3 mapper, prefer
JsonMapperBuilderCustomizerwhere a separate mapper is unnecessary. - Learn more: https://docs.spring.io/spring-boot/reference/features/json.html
SPRING-WIRING-004 - Review default async executor selection
- Severity: INFO
- Detects: Async infrastructure is present and default executor candidate metadata is unresolved. Framework's
taskExecutorfallback differs from Boot'sapplicationTaskExecutorintegration and force mode. A customAsyncConfigureror qualified method can choose differently; the scan does not invoke it. - Recommendation: Review the default executor and explicit
@Asyncqualifiers. Do not assume naming any executorapplicationTaskExecutorresolves all consumers. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-WIRING-005 - Review default DataSource selection
- Severity: INFO
- Detects: Multiple
DataSourcecandidates have unresolved default candidate metadata. Multiple databases and qualified consumers are valid; bean counts do not prove failed or incorrect injection. - Recommendation: Review the intended default, candidate flags and qualified consumers. Add a primary only when a default is actually intended.
- Learn more: https://docs.spring.io/spring-boot/reference/data/sql.html
SPRING-WIRING-006 - Review default imperative transaction manager
- Severity: INFO
- Detects: Multiple imperative
PlatformTransactionManagercandidates have unresolved default metadata. The XML conventiontransactionManageris not a universal override for Java@EnableTransactionManagement; custom configurers and qualifiers can determine selection. This inventory does not prove reactive transaction behavior. - Recommendation: Review the default/configurer or use explicit transaction-manager qualifiers where multiple managers are intentional.
- Learn more: https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative/annotations.html
SPRING-WIRING-007 - Review RestTemplate migration
- Severity: LOW
- Detects: A
RestTemplatebean is defined; this is not proof it is used.RestTemplateis in maintenance mode: Framework 7.0 (BootUI's baseline is 7.0.9) does not annotate it@Deprecated, but Framework 7.1 deprecates it for removal in 8.0 (spring-framework#36574). - Recommendation: Prefer an injected Boot
RestClient.Builderwhen migrating so common settings and customizations are preserved. RetainRestTemplatewhere a dependency still requires it. - Learn more: https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#migrating-to-restclient
SPRING-WIRING-008 - Review default-package application beans
- Severity: LOW
- Detects: Non-eagerly resolvable application bean types in the unnamed package, including
@Beanproduct types. A plain object in that package does not itself cause a classpath-wide component scan; that concern applies to a scan root there. - Recommendation: Prefer named packages and keep component-scan roots bounded. The Architecture advisor independently covers static application structure.
- Learn more: https://docs.spring.io/spring-boot/reference/using/structuring-your-code.html
SPRING-WIRING-009 - Review public mutable singleton fields
- Severity: LOW
- Detects: Public mutable fields on singleton application beans, excluding injection points, configuration-bound fields, synthetic fields and accessor-backed Kotlin properties. Exposed mutable state warrants review but does not prove concurrent access or a data race.
- Recommendation: Make the field private and expose an accessor if needed, mark it final and set it only from the constructor, or move truly per-request/per-call state out of the singleton (a method-local variable, a request-scoped bean, or immutable value types).
- Learn more: https://docs.spring.io/spring-framework/reference/core/beans/factory-scopes.html
SPRING-WIRING-010 - Enable resilience processing for @Retryable and @ConcurrencyLimit beans
- Severity: HIGH
- Detects: Application beans annotated with Spring Framework 7's
@org.springframework.resilience.annotation.RetryablewithoutRetryAnnotationBeanPostProcessor(internalRetryAnnotationProcessor),@org.springframework.resilience.annotation.ConcurrencyLimitwithoutConcurrencyLimitBeanPostProcessor(internalConcurrencyLimitProcessor), or Spring Retry's@org.springframework.retry.annotation.RetryablewithoutRetryConfiguration. Spring Boot 4 does not auto-enable@EnableResilientMethods, so omitting the enabler leaves these annotations inert at runtime. - Recommendation: Add
@EnableResilientMethodson a@Configurationclass for Spring Framework 7@Retryableand@ConcurrencyLimit, or@EnableRetryfor Spring Retry@Retryable. - Learn more: https://docs.spring.io/spring-framework/reference/core/resilience.html
SPRING-WIRING-011 - Enable infrastructure for @Async, @Cacheable, and @Transactional beans
- Severity: HIGH
- Detects: Application beans declaring
@AsyncwithoutAsyncAnnotationBeanPostProcessor/AsyncExecutionAspectSupport,@Cacheable/@CachePut/@CacheEvict/@CachingwithoutCacheAspectSupport/internalCacheAdvisor, or@TransactionalwithoutTransactionAspectSupport/internalTransactionAdvisorand aTransactionManager(orTransactionManagementConfigurer) bean. - Recommendation: Add
@EnableAsyncor@EnableCachingon a@Configurationclass, or ensure@EnableTransactionManagementand aTransactionManagerbean are present for@Transactionalbeans. - Dismissals: Existing dismissals keep this ID and its remaining HIGH checks. Scheduling now has its own ID below; dismissals are not copied between the two rules.
- Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-WIRING-012 - Review @Scheduled methods without scheduling infrastructure
- Severity: MEDIUM
- Detects: Application beans declaring
@Scheduled/@ScheduleswithoutScheduledAnnotationBeanPostProcessororScheduledTaskHolderin the observed bean factory. One finding is retained per bean method name, including private and repeatable scheduled declarations, within the existing discovery bounds. This observes absence, not why scheduling is absent: profile/property exclusions can be deliberate in development or CI, and no production defect is inferred. - Recommendation: Review whether scheduling is intended in this run. Keep deliberate exclusions; add
@EnableSchedulingon a@Configurationclass only when these methods should be scheduled. - Scope: Shared by Spring MVC and WebFlux, not a Quarkus scheduling rule. Registered scheduling infrastructure suppresses this check even when a cron expression is deliberately disabled. Incomplete bean indexing stays unknown; other incomplete metadata retains independently observed findings without claiming complete coverage.
- Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
Configuration
SPRING-CONFIG-002 - Review broad verbose logging configuration
- Severity: LOW
- Detects: Configured
debug/traceflags (matching Boot'sLoggingApplicationListener.isSetcondition: any non-null value other than"false", including CLI--debug/--trace), or aDEBUG,TRACEorALLlevel on the broadroot,web,sql,org.springframeworkororg.hibernateloggers. These are configuration observations, not a measurement of current logger state or sensitive log contents. Boot's debug flag does not set every logger to DEBUG; profile names do not increase severity. - Recommendation: Remove the debug/trace flags and configure logging levels only for narrow packages that need them.
- Learn more: https://docs.spring.io/spring-boot/reference/features/logging.html
SPRING-CONFIG-003 - Review renamed or removed Boot 4 properties
- Severity: MEDIUM
- Detects: Source-verified renamed/removed properties for Boot 4.1.1, including old server error and encoding keys, Undertow, HTTP clients, Mongo connection, health and metrics keys, tracing export, OTLP logging/tracing export, OpenTelemetry/Brave/Zipkin tracing keys, Wavefront (end-of-life),
server.use-forward-headers, Redis sessions, Mongo session auto-configuration, RabbitMQretry.max-attempts(nowretry.max-retries, which counts retries after the first attempt), Kafkaretry.topic.backoff.random(now thejitterduration), Jackson 2-eraspring.jackson.parser.*/spring.jackson.generator.*, template-engine*.enabledswitches,spring.neo4j.pool.metrics-enabled, Boot 4.1's removedspring.data.redis.lettuce.cluster.refresh.adaptive, andspring.codec.max-in-memory-size/spring.codec.log-request-details(nowspring.http.codecs.*). Each entry was checked against Boot 4.1.1's configuration metadata (level: error) and the absence of a remaining source reader. A properties migrator or host integration can still translate a legacy key; the finding does not assert it has no effect everywhere. - Live-property exceptions:
spring.dao.exceptiontranslation.enabledis still read by JDBC transaction-manager auto-configuration, even though Boot's metadata marks it replaced byspring.persistence.exceptiontranslation.enabled. OTLP metrics keys undermanagement.otlp.metrics.*remain live.server.servlet.encoding.mapping, Jackson stream versus JSON feature groups, and unrelatedspring.data.mongodbGridFS/index settings remain distinct live configuration and are not indiscriminately renamed. - Recommendation: Update each key to its Spring Boot 4 equivalent (the spring-boot-properties-migrator module lists the replacements at startup) and remove keys for dropped features.
- Learn more: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide
SPRING-CONFIG-004 - Consider a stable application name
- Severity: INFO
- Detects:
spring.application.nameis not set. This omits Boot's common application-name default; individual logging, metrics, tracing and discovery integrations can still have separately configured identities. - Recommendation: Set spring.application.name to a stable identifier for this service.
- Learn more: https://docs.spring.io/spring-boot/reference/features/spring-application.html
SPRING-CONFIG-005 - Review globally ignored missing configuration
- Severity: MEDIUM
- Detects:
spring.config.on-not-found=ignoreconfigures global tolerance of missing config data. The scan does not prove a file was missing. - Recommendation: Remove spring.config.on-not-found=ignore (the default fails fast) and use the optional: prefix only on the specific imports that are genuinely optional.
- Learn more: https://docs.spring.io/spring-boot/reference/features/external-config.html
SPRING-CONFIG-006 - Review Jackson 2-compatible defaults
- Severity: INFO
- Detects: Applicable Jackson 3 configuration requests Jackson 2-compatible defaults with
spring.jackson.use-jackson2-defaults=true. This is not a switch to the Jackson 2 implementation, and the compatibility setting has no established removal deadline. - Recommendation: Document the intended payload contract and add compatibility tests before changing defaults. Keeping compatible serialization can be intentional; removing this setting is not mandatory.
- Learn more: https://docs.spring.io/spring-boot/reference/features/json.html
SPRING-CONFIG-007 - Review the deprecated Jackson 2 auto-configuration
- Severity: LOW
- Detects: Boot's
spring-boot-jackson2auto-configuration (Jackson2AutoConfiguration) is registered in the running context. Boot 4.0 ships this module only as a migration stop-gap,@Deprecated(forRemoval = true)with removal planned for Boot 4.3. The check reads the auto-configuration's bean-definition name, so it identifies the active module, not which mapper serializes HTTP payloads. A future rename would make it a silent pass, not a false finding. - Recommendation: Identify what pulls
spring-boot-jackson2, then migrate itsspring.jackson2.*settings andJackson2ObjectMapperBuilderCustomizerbeans to the Jackson 3 equivalents (spring.jackson.*,JsonMapperBuilderCustomizer) with payload compatibility tests. - Learn more: https://docs.spring.io/spring-boot/reference/features/json.html#features.json.jackson2
SPRING-CONFIG-008 - Remove the properties migrator after migrating
- Severity: INFO
- Detects:
spring-boot-properties-migratoris on the classpath (its listener class is resolvable without initialization; the module registers itself throughspring.factories). It is a temporary upgrade aid that reports legacy keys at startup and can temporarily remap renamed ones. An ongoing migration is expected; the scan does not establish which keys are currently translated. - Recommendation: Fix the keys the migrator reports at startup and any SPRING-CONFIG-003 findings, then remove the dependency and verify configuration-dependent behavior after a restart.
- Learn more: https://docs.spring.io/spring-boot/upgrading.html#upgrading.to-feature
Profiles and environment
SPRING-PROFILE-002 - Review DevTools packaging for production-like profiles
- Severity: INFO
- Detects: DevTools is on the classpath alongside production-like effective profile names. The naming heuristic is not proof of a production deployment, and classpath presence does not prove restart or live reload is enabled. Ordinary development use is expected.
- Recommendation: Review packaging and actual activation if those profiles represent production. Maven
optionalcontrols transitive use, not by itself every packaging path; check the deployed artifact. - Learn more: https://docs.spring.io/spring-boot/reference/using/devtools.html
SPRING-PROFILE-003 - Review disabled profile-name validation
- Severity: INFO
- Detects:
spring.profiles.validate=falseexplicitly disables Boot's profile-name validation. This is a supported flexibility choice, not evidence that a profile name is invalid. - Recommendation: Keep the default validation when its naming constraints suit the application; document any deliberate exception.
- Learn more: https://docs.spring.io/spring-boot/reference/features/profiles.html
Performance and concurrency
SPRING-PERF-001 - Consider virtual threads for applicable blocking work
- Severity: INFO
- Detects: Java 24+ (JEP 491) and applicable MVC or Boot task-execution evidence, without an explicit virtual-thread configuration. On JDK 21-23, this rule is skipped so it does not conflict with SPRING-PERF-007. A pure reactive HTTP path is not an opportunity to replace event loops.
- Recommendation: Consider
spring.threads.virtual.enabled=truefor suitable blocking workloads, measuring the effect and preserving downstream concurrency limits. It does not accelerate CPU-bound work or replace reactive event loops, though Boot 4'sReactorEnvironmentPostProcessorautomatically setsreactor.schedulers.defaultBoundedElasticOnVirtualThreads=true. Java 24's JEP 491 removes synchronized-monitor pinning; assess limitations against the actual JDK. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-002 - Review pooled executor routing
- Severity: INFO
- Detects: Virtual threads are configured and the application declares a
ThreadPoolTaskExecutor. When resolvable, each finding names the bean and the class declaring its factory method; otherwise, including for directly registered or scanned pool components, it names the bean type, states that the declaring configuration was not resolved, and still reports the pool. Pools whose factory method is declared by Spring's own configuration classes (org.springframework.*, excludingorg.springframework.samples.*applications), such as the STOMP channel executors (clientInboundChannelExecutor,clientOutboundChannelExecutor,brokerChannelExecutor) that@EnableWebSocketMessageBrokerregisters, are framework-owned and excluded; an application override of such a method, with or without@Bean, is reported. Co-presence does not cancel virtual-thread execution elsewhere, establish routing, or prove the pool's custom thread factory uses platform threads. - Recommendation: Review which tasks use the pool and why. CPU isolation and bounded concurrency can be intentional; do not remove a useful constraint merely to eliminate this prompt.
- Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-003 - Review Framework default async fallback
- Severity: LOW
- Detects: The default async path has no resolvable executor and would use Framework's
SimpleAsyncTaskExecutorfallback. Custom configurers, qualifiers and unresolved metadata are not guessed. Boot's ordinary core-size default of eight is not labeled unreviewed, and setting the virtual-thread property alone does not replace a Framework fallback. - Recommendation: Supply a deliberate executor for unqualified async work and review concurrency/admission policy. This does not prove every
@Asyncmethod uses the default. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-005 - Review single-thread scheduler overlap
- Severity: INFO
- Detects: Known single-thread scheduler selection with multiple relevant registered application tasks. Native task outcome wrappers, Boot's scheduling-observation configurer, BootUI's observation-only configurer, and the verified Modulith integration above do not obscure that evidence. Application tasks are not excluded by a BootUI-like package name. For multiple tasks, the registrar's already-selected scheduler instance must agree with observable candidate selection before its native pool is read; no lazy scheduler supplier is invoked. Fewer than two registered tasks need no pool-size observation. Exact
SimpleAsyncTaskSchedulerselection is inapplicable to this pool check, not a missing thread-pool size.@EnableSchedulingor an absent pool-size property alone does not establish selection; ambiguous/unobservable schedulers, qualifiers, arbitrary or advised configurers, and unsupported task shapes remain unknown. - Recommendation: Review whether tasks need to overlap and how delays affect other tasks. Deliberate serialization can be correct. Virtual threads do not universally solve fixed-delay scheduling, and changing fixed-delay to fixed-rate changes semantics.
- Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-006 - Review an unbounded default async queue
- Severity: LOW
- Detects: A positively identified default async executor (including Boot's
@LazyapplicationTaskExecutorinspected via itsThreadPoolTaskExecutorBuilder) has an observed effectively unbounded queue, including when a finitemaxPoolSize > corePoolSizeis rendered unreachable byInteger.MAX_VALUEqueue capacity. By-type executor lookup considers primary metadata before the default-candidate fallback; an executor excluded from unqualified injection can still be selected by that lookup. An explicitInteger.MAX_VALUEis still unbounded; a bounded custom executor is not flagged merely because Boot properties are absent. ExactSimpleAsyncTaskExecutorselection is inapplicable to this queue check, not a missing queue observation. Custom lazy/unobservable executors or custom selection remain unknown. - Recommendation: Review queue capacity, rejection/backpressure and downstream limits together. An unbounded queue prevents maximum pool size from serving as a normal expansion control; virtual threads are not admission control.
- Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-007 - Review virtual threads on a JDK before 24
- Severity: INFO
- Detects:
spring.threads.virtual.enabled=truewith applicable MVC or Boot task-execution evidence (the same gate as SPRING-PERF-001) on JDK 21-23. Before JEP 491 (JDK 24), blocking insidesynchronizedpins the carrier thread and the scheduler does not compensate, so heavy pinned blocking can starve carriers. This is a runtime-version review prompt, not observed pinning; reactive event loops are unaffected. - Recommendation: Prefer JDK 24 or later (25 is LTS) for virtual threads. Otherwise load-test with JFR
jdk.VirtualThreadPinnedevents and review libraries that block insidesynchronized; the absence of events under light load does not prove safety. Disabling virtual threads is not required. - Learn more: https://openjdk.org/jeps/491
SPRING-PERF-008 - Review applicationTaskExecutor back-off when virtual threads are enabled
- Severity: MEDIUM
- Detects:
spring.threads.virtual.enabled=trueon Java 21+ with Boot'sTaskExecutionPropertiespresent, whenapplicationTaskExecutorbacked off because at least onejava.util.concurrent.Executorbean (such as a custom executor or STOMP message-broker channel executor) is registered andspring.task.execution.mode=forceis not set. - Recommendation: Set
spring.task.execution.mode=forceso Spring Boot still registers its virtual-threadapplicationTaskExecutoralongside otherExecutorbeans, or define an explicitapplicationTaskExecutorbean if custom routing is intentional. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-009 - Review task pool properties ignored under virtual threads
- Severity: LOW
- Detects: Configured
spring.task.execution.pool.*(core-size,max-size,queue-capacity,keep-alive,allow-core-thread-timeout,shutdown.accept-tasks-after-context-close, when no application-ownedThreadPoolTaskExecutoris present) orspring.task.scheduling.pool.sizeproperties when Boot's virtual-threadSimpleAsyncTaskExecutor(applicationTaskExecutor) orSimpleAsyncTaskScheduler(taskScheduler) is active. Under virtual threads, these thread-pool sizing properties have no effect. - Recommendation: Remove unused pool sizing properties under virtual threads, or configure
spring.task.execution.simple.concurrency-limitandspring.task.scheduling.simple.concurrency-limitwhen bounded concurrency is needed. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-PERF-011 - Review incomplete task executor or scheduler shutdown termination settings
- Severity: MEDIUM
- Detects:
spring.task.execution.shutdown.await-termination=trueorspring.task.scheduling.shutdown.await-termination=trueconfigured without a positiveawait-termination-period(which skipsSmartLifecyclestop on platform threads and waits0msduring bean destruction), or a positiveawait-termination-periodconfigured withoutawait-termination=truewhilespring.threads.virtual.enabled=true(whereSimpleAsyncTaskExecutorBuilderandSimpleAsyncTaskSchedulerBuilderignore the timeout unlessawait-termination=true). - Recommendation: Configure both
await-termination=trueand a positiveawait-termination-periodtogether onspring.task.execution.shutdownandspring.task.scheduling.shutdownwhen graceful task drain is required. - Learn more: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
SPRING-CACHE-001 - Review concurrent-map cache capacity
- Severity: INFO
- Detects: An exact known
ConcurrentMapCacheManagerlacks built-in capacity/expiry policy, including when wrapped by BootUI's own final cache-activity decorator. The same safe unwrapping retainsNoOpCacheManagerandCaffeineCacheManagerprovider identity and completion credit. NoOp stores nothing; a Caffeine pass means this concurrent-map-specific concern does not apply, not that every Caffeine configuration is bounded. No application delegate callback is invoked, and custom wrappers/implementations/subclasses remain unknown. A known concurrent-map finding is retained even when another provider remains unclassified. - Recommendation: If key growth or staleness matters, review bounds/expiry or a suitable provider. Local Caffeine is a valid production choice; shared storage is not universally required.
- Learn more: https://docs.spring.io/spring-boot/reference/io/caching.html
Web and HTTP
Boot-managed server attribution permits BootUI's metadata-only peer customizer, which adds a capture valve without changing server policy. Application customizers remain unknown; collection never invokes a customizer.
SPRING-WEB-001 - Consider origin response compression
- Severity: INFO
- Detects: An applicable Boot-managed origin is not configured for compression, without an explicit opt-out. This does not establish whether responses reaching the client are compressed; custom server behavior and proxy/CDN compression differ.
- Recommendation: If the edge does not already compress, evaluate
server.compression.enabled=trueagainst response sizes, content types and CPU cost. Explicit false suppresses this optional prompt. - Learn more: https://docs.spring.io/spring-boot/reference/web/servlet.html (on WebFlux, https://docs.spring.io/spring-boot/reference/web/reactive.html)
SPRING-WEB-002 - Review immediate or zero-grace shutdown
- Severity: MEDIUM
- Detects: Applicable embedded-server configuration requests immediate shutdown or no positive lifecycle grace period. Boot 4's graceful default passes. Duration comparison preserves positive sub-millisecond values; malformed configuration is an error rather than a default.
- Recommendation: Prefer graceful shutdown with an appropriate positive grace period where in-flight work should finish. The default 30 seconds applies per lifecycle phase, not necessarily to the entire shutdown.
- Learn more: https://docs.spring.io/spring-boot/reference/web/graceful-shutdown.html
SPRING-WEB-003 - Consider origin HTTP/2
Retired. server.http2.enabled is unset by default in Spring Boot. Plain HTTP/1.1 is standard in local development and behind TLS-terminating reverse proxies, and enabling server.http2.enabled=true without SSL enables cleartext h2c (which browsers do not support).
SPRING-WEB-004 - Review configured fallback error details
- Severity: MEDIUM
- Detects: Application-configured
spring.web.error.*settings request detail disclosure (alwaysor caller-controlledon-param, in any spelling Boot's lenient enum binding accepts, orinclude-exception=true) in Boot's fallback error handling. This does not characterize every custom error response. Legacyserver.error.*keys belong to SPRING-CONFIG-003. - DevTools defaults ignored: while a DevTools restart is active, DevTools adds a low-priority
devtoolsproperty source that setsinclude-binding-errors,include-messageandinclude-stacktracetoalwaysfor local development. Those defaults are not the application's configuration and are ignored, like BootUI's own Actuator defaults; an application value still wins and is still reported. - Ownership: Remains always active as the sole owner of
spring.web.error.*fallback error detail settings, whether or not applicationSecurityFilterChainorSecurityWebFilterChainbeans are present. - Recommendation: Use
neverfor stacktrace/message/binding-error details and false for exception inclusion where details must stay private.on-paramis not an authorization boundary. - Learn more: https://docs.spring.io/spring-boot/reference/web/servlet.html (on WebFlux, https://docs.spring.io/spring-boot/reference/web/reactive.html)
SPRING-WEB-005 - Review Boot HTTP client timeout policy
- Severity: INFO
- Detects: Identifiable Boot-managed client configuration has an incomplete timeout policy at the global/default or relevant named-service group level. A configured group does not cover unrelated clients. Programmatic client settings and provider defaults can still supply timeouts; custom-only or unattributable clients are not labeled unconfigured and remain unknown. Confirmed absence of managed client, builder, and service-group targets in a complete root inventory is inapplicable, not missing evidence.
- Recommendation: Check effective per-client connect/read/deadline behavior against dependency budgets, using
spring.http.clients.*, relevantspring.http.serviceclient.<name>.*settings or deliberate code customization. No universal timeout value or infinite-wait claim is inferred. - Learn more: https://docs.spring.io/spring-boot/reference/io/rest-client.html
SPRING-WEB-007 - Review a Tomcat cap with a virtual executor
- Severity: LOW
- Detects: An explicit Tomcat thread cap alongside positively observed applicable virtual-thread executor configuration on a supporting JDK. A Tomcat factory type and a property alone do not prove the selected executor; custom/unknown routing and non-Tomcat servers are unevaluated.
- Recommendation: Review/remove the cap when the observed executor no longer uses it. Preserve deliberate admission limits elsewhere; virtual threads do not bound request concurrency.
- Learn more: https://docs.spring.io/spring-boot/reference/web/servlet.html
SPRING-WEB-008 - Review an unlimited multipart request size
- Severity: LOW
- Detects: On Spring MVC, the multipart configuration that Boot's already-created
DispatcherServletRegistrationBeancarries has a negative (unlimited) maximum request size. Boot defaults to 1MB per file and 10MB per request, so this requires explicit configuration such asspring.servlet.multipart.max-request-size=-1or a customMultipartConfigElement. A finite total request size with an unlimited per-file size is still bounded and passes. Parts above the in-memory threshold are written to disk; proxy and container limits are not observed, and Tomcat's form-post limit does not bound file parts. Disabled multipart passes; a missing, lazy or custom registration is unevaluated. WebFlux is inapplicable: its multipart model differs and is not given a parity claim. - Recommendation: Configure a workload-appropriate
spring.servlet.multipart.max-request-size(andmax-file-size), and enforce request-body limits at the edge too. No universal size is prescribed. - Learn more: https://docs.spring.io/spring-boot/how-to/spring-mvc.html#howto.spring-mvc.multipart-file-uploads
Data and persistence
SPRING-JPA-001 - Review servlet Open Session in View
- Severity: MEDIUM
- Detects: Observed servlet OSIV registration, including the interceptor actually adapted into an MVC handler mapping. Boot interceptor/configurer definitions alone are insufficient: custom MVC configuration can omit applying those configurers. Collection distinguishes observed presence, confirmed absence and unknown registration coverage. Absence requires inspection of native applied MVC/resource/WebSocket/Actuator handler mappings and servlet filter registration metadata, including native Spring Security filter-chain proxies. Native empty interceptor lists and completed null-returning mapping factories are known empty; lazy mappings, custom handler mappings, custom registration subclasses/initializers and unresolved filter targets suppress absence claims.
spring.jpa.open-in-view=falsealone is never proof of absence. Independently observed registrations still produce the existing MEDIUM finding when other coverage is incomplete. Custom mapping limits are stated, WebFlux is inapplicable, and an open persistence context does not itself prove a held JDBC connection or N+1 queries. - Recommendation: Review whether request-wide persistence access is intentional. Prefer explicit fetch boundaries (fetch joins, entity graphs, DTO projections) where appropriate; disable Boot OSIV with
spring.jpa.open-in-view=falseor adjust custom registrations separately. - Learn more: https://docs.spring.io/spring-boot/reference/data/sql.html#data.sql.jpa-and-spring-data.open-entity-manager-in-view
SPRING-DATA-001 - Review in-memory JDBC with production-like profiles
- Severity: MEDIUM
- Detects: Supported datasource configuration provenance (unwrapping BootUI's SQL Trace proxy, single-target
DelegatingDataSourcewrappers, and static AOP proxies perDataSource) indicates an H2 (jdbc:h2:mem,jdbc:h2:mem:...,jdbc:h2:mem;...), HSQLDB, or Derby memory subprotocol alongside production-like effective profile names. Configured default profiles apply when active profiles are absent. Naming is only a heuristic, and memory-looking query values in a durable URL are not memory databases. Unknown custom connection details are unevaluated; raw URLs are never shown. - Recommendation: Verify durability requirements and the actual datasource. Memory databases can be intentional; use durable storage where data must survive process termination.
- Learn more: https://docs.spring.io/spring-boot/reference/data/sql.html#data.sql.datasource.embedded
SPRING-DATA-002 - Review in-memory R2DBC with production-like profiles
- Severity: MEDIUM
- Detects: A Boot R2DBC URL selecting H2 memory storage (
r2dbc:h2:mem:orr2dbc:pool:h2:mem:, including URLs with?query parameters) with attributable factory evidence and production-like effective profile names. A configured URL with no relevant runtime provenance is insufficient; custom connection details remain unknown and URL values are not exposed. - Recommendation: Verify the application's durability requirements and actual connection factory rather than inferring them from profile names.
- Learn more: https://docs.spring.io/spring-boot/reference/data/sql.html#data.sql.r2dbc.embedded
Actuator and management
The access-aware rules follow Boot 4.1.1: endpoint settings override global defaults, then max-permitted caps access. Typed conversion accepts Boot-supported spellings such as readonly and legacy enabled=on. Empty values that bind to null inherit the next policy level; two non-null typed access and legacy enabled values at the same scope conflict rather than silently taking precedence. Both heapdump and shutdown default to access none. A valid empty include falls back to health; excludes win. Invalid binding is not silently treated as empty.
Host configuration is distinguished from BootUI's low-priority management defaults. When at least one non-BootUI application SecurityFilterChain or SecurityWebFilterChain bean is registered in the context (excluding BootUI's own bootUiSecurityFilterChain / bootUiReactiveSecurityWebFilterChain), SPRING-MGMT-001, SPRING-MGMT-002 and SPRING-MGMT-004 are deferred (SKIPPED) to the Security Advisor (SEC-ACT-001/002/005 and SEC-RXF-ACT-*), which evaluates the same Actuator exposure alongside route-level authentication and authorization without double-penalizing the Scorecard. SPRING-MGMT-003 (like SPRING-WEB-004) remains always active as the sole owner of show-values=always and health.show-details=always / health.show-components=always. When no application security filter chain is present, SPRING-MGMT-001, SPRING-MGMT-002 and SPRING-MGMT-004 remain active so Actuator exposure is still reviewed. Exposure/access observations do not establish authorization or public reachability; a separate management port is not itself an access control, and disabling endpoint discovery does not disable routes.
SPRING-MGMT-001 - Review host wildcard Actuator exposure
- Severity: MEDIUM
- Detects: Host-configured wildcard web exposure with applicable endpoint evidence, respecting exclusion and access suppression. Deferred (
SKIPPED) when a non-BootUI applicationSecurityFilterChainorSecurityWebFilterChainbean is present, whereSEC-ACT-001/SEC-RXF-ACT-001evaluates wildcard exposure with route authorization context. It is not proof every optional endpoint exists or that endpoints are public. - Recommendation: Prefer an explicit needed endpoint list and review access controls separately. Profile names and port equality do not increase severity.
- Learn more: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
SPRING-MGMT-002 - Review explicitly exposed sensitive Actuator endpoints
- Severity: MEDIUM
- Detects: Explicit host inclusion of observed sensitive diagnostic endpoints with readable access. Wildcards are handled by SPRING-MGMT-001; shutdown/heapdump by SPRING-MGMT-004. Deferred (
SKIPPED) when a non-BootUI applicationSecurityFilterChainorSecurityWebFilterChainbean is present, whereSEC-ACT-002/SEC-RXF-ACT-002evaluates sensitive exposure with route authorization context. Missing optional endpoints and BootUI-contributed exposure are not host findings. - Recommendation: Review which diagnostics need web access and how that access is restricted. This rule does not assess endpoint authorization.
- Learn more: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
SPRING-MGMT-003 - Review Actuator values and health details
- Severity: MEDIUM
- Detects: Host-configured
show-values=alwaysor healthshow-details=always/show-components=alwayson applicable readable endpoints, in any spelling Boot's lenient enum binding accepts (for exampleWHEN_AUTHORIZEDorwhenauthorizedare valid, not analysis errors). Always active regardless of whether application security filter chains are present. These settings govern disclosure to callers allowed to access the endpoint, not authorization itself; health details and raw configuration values are distinct. - Only host configuration: BootUI contributes
management.endpoint.health.show-details=alwaysitself, as a lowest-priority default, so its own Health panel works. That contribution is ignored here, so the rule reports only what the application configured. - Recommendation: Prefer
neverwhen details are unnecessary, orwhen-authorizedwith deliberate endpoint roles and authorization configuration. Review sanitization separately. - Learn more: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html#actuator.endpoints.sanitization
SPRING-MGMT-004 - Review granted heapdump or shutdown web access
- Severity: HIGH
- Detects: An observed shutdown endpoint has effective write access and web exposure, or an observed heapdump endpoint has read access and web exposure. Both default to
nonein Boot 4.1.1, so include/wildcard exposure alone is not sufficient. A read-only cap allows heapdump reads but not shutdown writes. Deferred (SKIPPED) when a non-BootUI applicationSecurityFilterChainorSecurityWebFilterChainbean is present, where the Security Advisor evaluates dangerous Actuator endpoints alongside route authorization. - Recommendation: Keep unnecessary endpoint access at
noneand remove unnecessary exposure. Where deliberate, review endpoint authorization and network restrictions. No profile/port-based CRITICAL escalation or claim of unauthenticated access is made. - Learn more: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
Reactive (WebFlux only)
Active rules in this category are SKIPPED unconditionally on a servlet (Spring MVC) application; they only evaluate when the advisor detects a WebFlux ReactiveWebApplicationContext.
SPRING-REACTIVE-001 - Review reactive handlers alongside JDBC
Retired. A WebFlux application can legitimately configure a JDBC DataSource for Flyway or Liquibase schema migrations or offload JDBC calls via Schedulers.boundedElastic(). Because a reflection-only context scan cannot inspect handler method bodies, this check fired permanently unless dismissed. Actual event-loop blocking is covered by Runtime Insights and the Java Agent Side Effects panel.
SPRING-REACTIVE-003 - Review explicitly unlimited codec aggregation
- Severity: LOW
- Detects: Positive Boot codec configuration evidence (ignoring BootUI's own non-codec-limit
WebFluxConfigurerbeans) withspring.http.codecs.max-in-memory-size=-1requests unlimited aggregation. Defaults and positive limits are not findings; custom codec overrides with unknown effective behavior are unevaluated. The legacy namespace belongs to SPRING-CONFIG-003. - Recommendation: Use a workload-appropriate bounded aggregation limit where possible. This is not a universal request-body, upload or streaming limit; no arbitrary larger buffer is prescribed. The new ID does not inherit dismissal of the retired opposite recommendation.
- Learn more: https://docs.spring.io/spring-boot/reference/web/reactive.html
Rule summary
The Spring Advisor ships 45 active rules across eight categories. The 2026 audits retired SPRING-CONFIG-001, SPRING-WEB-003 and SPRING-REACTIVE-001, corrected SPRING-CONFIG-003, SPRING-WIRING-007, SPRING-WEB-004 and SPRING-MGMT-003, deferred SPRING-MGMT-001, SPRING-MGMT-002 and SPRING-MGMT-004 when application security filter chains exist, and added SPRING-WIRING-010, SPRING-WIRING-011, SPRING-WIRING-012, SPRING-CONFIG-007, SPRING-CONFIG-008, SPRING-PERF-007, SPRING-PERF-008, SPRING-PERF-009, SPRING-PERF-011 and SPRING-WEB-008. Declared severities are 0 CRITICAL, 3 HIGH, 15 MEDIUM, 11 LOW and 16 INFO. Profile names and management-port equality do not escalate severities.
| Category | Rules |
|---|---|
| Bean wiring | SPRING-WIRING-001 ... SPRING-WIRING-012 |
| Configuration | SPRING-CONFIG-002 ... SPRING-CONFIG-008 |
| Profiles and environment | SPRING-PROFILE-002, SPRING-PROFILE-003 |
| Performance and concurrency | SPRING-PERF-001 ... SPRING-PERF-003, SPRING-PERF-005 ... SPRING-PERF-009, SPRING-PERF-011, SPRING-CACHE-001 |
| Web and HTTP | SPRING-WEB-001, SPRING-WEB-002, SPRING-WEB-004, SPRING-WEB-005, SPRING-WEB-007, SPRING-WEB-008 |
| Data and persistence | SPRING-JPA-001, SPRING-DATA-001, SPRING-DATA-002 |
| Actuator and management | SPRING-MGMT-001 ... SPRING-MGMT-004 |
| Reactive (WebFlux only) | SPRING-REACTIVE-003 |
Retired rule IDs
These IDs remain reserved. Existing dismissals are preserved without migration or reuse.
| ID | Previous subject | Reason for retirement |
|---|---|---|
| SPRING-PROFILE-001 | Require an explicit active profile | Profiles are optional; configured default profiles and profile-free external configuration are valid. |
| SPRING-PERF-004 | Hikari default may bottleneck virtual threads | Property absence cannot establish an unreviewed/undersized pool. Explicitly writing the default 10 changes no runtime behavior; size against database capacity and observed load. |
| SPRING-WEB-003 | Consider origin HTTP/2 | server.http2.enabled is unset by default; plain HTTP/1.1 is standard in local development and behind TLS-terminating reverse proxies, and enabling server.http2.enabled=true without SSL enables cleartext h2c (unsupported by browsers). |
| SPRING-WEB-006 | Forwarded headers from a production profile | A profile name cannot establish a trusted proxy. Changing header trust needs deployment evidence. |
| SPRING-CONFIG-001 | Consider lazy initialization for large contexts | More than 300 bean definitions is not a startup-cost measurement and is exceeded by almost every web, Actuator and data application (BootUI's own beans included). Boot advises against enabling lazy initialization by default because it delays failures and first-request work. |
| SPRING-REACTIVE-001 | Review reactive handlers alongside JDBC | A WebFlux app legitimately configures a DataSource for Flyway/Liquibase migrations or offloads JDBC calls via Schedulers.boundedElastic(). The reflection-only rule cannot inspect method bodies; actual event-loop blocking is covered by Runtime Insights and the Java Agent Side Effects panel. |
| SPRING-REACTIVE-002 | Increase the default codec buffer | A safe bounded default is not a defect, and spring.codec.* is stale in Boot 4. The new unlimited-aggregation check addresses a different condition. |
Audit sources and limitations
The audit targets Spring Boot 4.1.1 / Spring Framework 7.0.9. Version-pinned implementation is authoritative when current reference pages describe newer releases.
- Boot's managed Framework version, Framework candidate resolution, and primary/fallback semantics.
- Boot execution/scheduling guidance, executor configuration, Reactor schedulers, and JEP 491.
- Application/lazy-initialization tradeoffs, JSON support, client configuration, and webserver guidance.
- Endpoint access resolver, include/exclude filter, web endpoint defaults, heapdump, and shutdown.
- Boot 4.1.1 configuration metadata (
additional-spring-configuration-metadata.json,level: errordeprecations), the Boot 4.0 migration guide, 4.1 release notes, DevTools property defaults, Jackson 2 auto-configuration, multipart configuration, lenient enum binding, and RestTemplate deprecation. - Codec properties, Framework codec limits, servlet OSIV conditions, Hikari 7.0.2 defaults, and Hikari pool-sizing guidance.
The scan does not execute arbitrary application code to discover every custom client, scheduler, datasource wrapper, endpoint supplier or security chain. It cannot infer workload demand, authorization or network reachability from property presence. INFO opportunities explain these limits rather than declaring every default suboptimal.