Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GroupedOpenApi not working in spring mvc with version spring 6.20 without spring boot #3101

Open
@pradeepmishra24

Description

Hi,

We have simply upgraded our spring 5 mvc legacy project to spring 6 (not in boot).

This project is still use xml configurations but included few java configurations too, Due to this upgrade we have to upgrade our swagger to spring doc open api version 2.8.0. Unfortunately we did not able to run it . The best case was we were able to run /v3/api-doc json api. We are intended to show only a set of api in swagger and as per documents we have created the GroupedOpenApi but this was not working. I thought, it my not working due to xml configuartion so I moved to sample application using java config but that also did not work.

I have two packages- 1. com.example.group.controller 2. com.example.demo.controller

I am expecting apis only from package #1 i.e. com.example.group.controller but that did not happen. In swagger Ui, group name displays at top right but on selecting it nothing happens and even on passing group name in url i.e v3/api-doc/group returns the same response.

Sample application is attached here width.

springdoc-demo.zip

If team can provide a solution on this primarly and additional if possible any working demo app where swagger resources of UI serves through mvc:resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /