Skip to content

[API Versioning] Spring Language Server Doesn't Recognise useVersionResolver() use for API Versioning #1880

Closed

Description

@shadowcgray

When using the MVC API Versioning additions in Spring 7/Boot 4, the language server issues warnings about API Versioning not being configured anywhere. This only happens when the application doesn't use any of the ApiVersionConfigurer's useMediaType, usePathSegment, useQueyParam, or useRequestHeader methods; instead opting to supply their own ApiVersionResolver through useVersionResolver().

Affects
Confirmed on SpringTools for Eclipse 5.1.1.RELEASE on macOS Sonoma. SLS Feature Group version 5.1.1.202603170657.

To Reproduce

  1. Create any controller with version= in the @RequestMapping.
  2. Use useVersionResolver() to add asymmetric/selective versioning.
  3. The following warning is produced by the SLS - certainly in Eclipse Spring Tools.
    "API versioning not configured anywhere [API_VERSIONING_NOT_CONFIGURED]"

Sample
https://gist.github.com/shadowcgray/6d7c7a48b51a10620cb4f236a424541b

Activity

  1. added
    for: eclipse
    for: vscode
    and removed on Apr 18, 2026
  2. added this to the 5.2.0.RELEASE milestone on Apr 18, 2026
  3. added a commit that references this issue on Apr 20, 2026
  4. martinlippert commented on Apr 20, 2026

    @martinlippert
    Member

    thanks again for reporting this!
    Fixed via 4e4e31c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: validationtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions