-
Notifications
You must be signed in to change notification settings - Fork 3
테스트 #766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
테스트 #766
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
🧩 Analysis chain
🏁 Script executed:
Repository: woowacourse-teams/2025-course-pick
Length of output: 60
🏁 Script executed:
Repository: woowacourse-teams/2025-course-pick
Length of output: 162
🏁 Script executed:
Repository: woowacourse-teams/2025-course-pick
Length of output: 1405
🌐 Web query:
Spring Boot 3.5.3 MongoDB connection pool properties spring.data.mongodb max-pool-size socket-timeout💡 Result:
In Spring Boot 3.5.x, Spring Boot’s
spring.data.mongodb.*properties do not include dedicated “pool” or “socket timeout” fields (Boot mainly exposesspring.data.mongodb.uri, etc.). (docs.spring.io)So, to set max pool size and socket timeout, use one of these approaches:
1) Put driver options on
spring.data.mongodb.uri(recommended for simple config)MongoDB Java driver supports these URI options:
maxPoolSize(andminPoolSize)connectTimeoutMS,socketTimeoutMS(note:socketTimeoutMSis deprecated in newer driver docs in favor of client-level timeout) (mongodb.com)Example (
application.yml):Defaults worth knowing:
maxPoolSizedefaults to 100 if not set. (mongodb.ac.cn)2) Customize
MongoClientSettings(best if you want “typed” config / advanced tuning)Spring Boot builds the client using
MongoClientSettings, and the MongoDB driver lets you set pool and socket settings there (e.g., socket read timeout). (mongodb.com)Citations:
🌐 Web query:
Spring Data MongoDB connection pool configuration spring.data.mongodb.uri options replicaSet maxPoolSize socketTimeoutMS💡 Result:
In Spring Boot / Spring Data MongoDB you can pass MongoDB driver connection-string options directly via
spring.data.mongodb.uri, and Spring Boot will apply them when it auto-configuresMongoClientSettings. (docs.spring.io)1) Configure via
spring.data.mongodb.uri(replicaSet, pool, timeouts)Example:
Relevant URI options (driver-level):
replicaSet(replica set name) (mongodb.com)maxPoolSize/minPoolSize(connection pool sizing;maxPoolSizedefault is 100) (mongodb.com)socketTimeoutMS(socket read/write timeout; docs note default “never timeout”, driver-dependent) (mongodb.com)connectTimeoutMS(connect timeout) (mongodb.com)Note: in the Java driver, pool sizing applies per server in the topology. (mongodb.com)
2) When URI options aren’t enough: customize
MongoClientSettingsSpring Boot supports
MongoClientSettingsBuilderCustomizerto fine-tuneMongoClientSettings. (docs.spring.io)Citations:
🏁 Script executed:
Repository: woowacourse-teams/2025-course-pick
Length of output: 901
Spring Boot 3.5.3에서는 지정한 MongoDB 풀/타임아웃 속성들이 지원되지 않습니다.
현재 설정의
max-pool-size,min-pool-size,max-wait-time,socket-timeout,connect-timeout,max-connection-idle-time은 Spring Boot 3.5.3에서 인식되지 않는 속성으로, 이들은 무시되고 PR의 목적(커넥션 풀 조정)이 전혀 반영되지 않습니다.다음 중 하나의 방법으로 수정하세요:
spring.data.mongodb.uri를 사용 (권장):MongoClientSettingsBuilderCustomizer빈 생성: 더 복잡한 설정이 필요한 경우 커스텀 빈을 작성하여MongoClientSettings를 직접 구성합니다.🤖 Prompt for AI Agents