fix(diarychat): move base path to /api/v1/diary-chatrooms (Spring ambiguous mapping startup fix)#42
Open
rivkode wants to merge 1 commit into
Open
fix(diarychat): move base path to /api/v1/diary-chatrooms (Spring ambiguous mapping startup fix)#42rivkode wants to merge 1 commit into
rivkode wants to merge 1 commit into
Conversation
…rsona-chat collision PR #41 wired the diary chatroom controllers under /api/v1/chatrooms but that prefix was already owned by ChatRoomApiController (persona chat domain), so Spring failed to start with: Ambiguous mapping. Cannot map 'diaryChatRoomController' method ... to {POST [/api/v1/chatrooms]}: There is already 'chatRoomApiController' bean method ... - DiaryChatRoom/Message/Polling controllers now mount under /api/v1/diary-chatrooms (and .../{roomId}/messages, .../poll) - API shape and request/response bodies are unchanged; only the base path moves - PRD §7.0.1 records the rename as a documented spec deviation so the frontend updates the contract base accordingly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #41(diary chatroom v1)이 머지된 직후 앱 부팅 시 다음 에러가 발생했습니다:
```
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'requestMappingHandlerMapping' ...
Ambiguous mapping. Cannot map 'diaryChatRoomController' method
... DiaryChatRoomController#create(...)
to {POST [/api/v1/chatrooms]}: There is already 'chatRoomApiController' bean method
```
기존 페르소나 챗봇 도메인의 `ChatRoomApiController`가 `/api/v1/chatrooms` prefix를 이미 점유 중이라 PRD §7 spec 그대로 매핑 시 charter가 충돌합니다.
변경
새 endpoint 매핑
Test plan
🤖 Generated with Claude Code