Skip to content

[DPMBE-91]몽고디비 스트림 커넥션 오류 수정 #131

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

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

BlackBean99
Copy link
Collaborator

개요

작업사항

  • Spring 에서는 MongoDriver 가 발견되면 MongoAutoConfiguration이 default 로 설정되는 이슈가 있습니다.
    default 는 localhost:27017 로 설정이 됩니다. 본인 로컬로 켜진 몽고DB 로 연결되버립니다. MongoAtlas 로 연결하려면 저 설정을 꺼둬야 합니다.

  • @SpringBootApplication(exclude = [MongoAutoConfiguration::class, MongoDataAutoConfiguration::class])
    설정을 해도 반영이 안되더라구요. yml 세팅이 먹혀서 일단 이렇게 세팅했습니다.

image

[stackoverflow Mongo tries to connect automatically to port 27017(localhost)

- application.yml exclude add
@BlackBean99 BlackBean99 added the bug Something isn't working label Jul 2, 2023
@BlackBean99 BlackBean99 self-assigned this Jul 2, 2023
@BlackBean99 BlackBean99 requested review from ImNM and kdomo as code owners July 2, 2023 11:30
Copy link
Member

@ImNM ImNM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

야믈파일
인프라쪽으로 넣는게 좋을것 같음!!
굿굿

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@BlackBean99 BlackBean99 requested a review from ImNM July 2, 2023 13:59
Copy link
Member

@ImNM ImNM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L지T엠

Copy link
Member

@kdomo kdomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@BlackBean99 BlackBean99 merged commit 4a3c1ce into develop Jul 3, 2023
@BlackBean99 BlackBean99 deleted the hotfix/DPMBE-91 branch July 3, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DPMBE-91]몽고디비 스트림 커넥션 오류 수정
3 participants