Skip to content

fix: trailing slash 요청 시 405 에러 #700

Description

@ImNM

버그 설명

GET /api/v1/orders/?showing=true&page=0&size=10 등 trailing slash가 붙은 요청에서 405 Method Not Allowed 발생.

원인

Spring Boot 3.x에서 trailing slash 매칭이 기본 비활성화됨. /api/v1/orders/@GetMapping 매핑 실패.

수정

WebMvcConfig.configurePathMatch에서 setUseTrailingSlashMatch(true) 설정 추가.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions