[BUG] 새 도메인 url로 변경#354
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the production server URL in SwaggerConfig.java to use a custom domain with HTTPS. The reviewer recommended avoiding hardcoding this URL in the source code and instead injecting it dynamically from configuration files using @value to improve flexibility.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
|
||
| Server httpServer = new Server() | ||
| .url("http://issueissyu-backend-prod-env.eba-x2fpm3aq.ap-northeast-2.elasticbeanstalk.com") | ||
| .url("https://spring.issueissyu.cloud") |
There was a problem hiding this comment.
운영 서버의 URL을 소스 코드에 직접 하드코딩하는 것은 환경 변화에 유연하게 대처하기 어렵게 만듭니다. 이 설정은 application.yml 등의 설정 파일로 분리하고, @Value 어노테이션이나 Environment를 통해 동적으로 주입받아 사용하는 것을 권장합니다.\n\n예를 들어, 다음과 같이 개선할 수 있습니다:\n\njava\n@Bean\npublic OpenAPI openAPI(@Value(\"${swagger.prod-url:https://spring.issueissyu.cloud}\") String prodUrl) {\n // ...\n Server httpServer = new Server()\n .url(prodUrl)\n .description(\"IssueIssyu Prod Server\");\n // ...\n}\n
🔗 Related Issue
✨ 작업 개요
체크리스트
📷 이미지 첨부 (선택)
🧐 집중 리뷰 요청