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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
운영 서버의 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