Skip to content

'head' and 'options' mapping produces bad imports #192

Closed
@beeondev

Description

@beeondev

Hi,

It seem that 'head' and 'options' mapping just not compile because :

  • Some unused import just not exist in spring-web :
    import org.springframework.web.bind.annotation.HeadMapping;
    import org.springframework.web.bind.annotation.OptionsMapping;
  • Some import are never declared :
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;

options-and-head-mapping.ZIP

So for the moment i end up with just a workaround to exclude thoses endpoint.
First, i try with "exclude" mapping directive, but i realize that it is useless, because the mapping still generated (with another name as explained in documentation). I finally exclude it from openapi.yaml spec.

best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions