Skip to content
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

@Transactional과 mockMvc와의 관계에 대한 질문입니다. #626

Open
kohandy1902 opened this issue Nov 3, 2021 · 0 comments
Open
Labels
question 질문으로 사용될 이슈 Spring Boot Spring Boot 관련 내용

Comments

@kohandy1902
Copy link
Member

요약

@transactional 이 Test 결과에 왜 영향을 주는지 궁금합니다.





상황

IntegrationTest를 하는데, @test@transactional Annotation을 사용하였습니다. 그런데, mockMvc로 얻은 출력 결과가 postman을 통해 얻은 결과와 달랐습니다. 원인을 몰라서 헤매다가 @transactional annotation을 지웠더니 정상적으로 동작하였습니다. 혹시 @transactional이 mockMvc의 결과에 영향을 주는 것일까요?

아래가 코드입니다.
issue




@kohandy1902 kohandy1902 added Spring Boot Spring Boot 관련 내용 question 질문으로 사용될 이슈 labels Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 질문으로 사용될 이슈 Spring Boot Spring Boot 관련 내용
Projects
None yet
Development

No branches or pull requests

1 participant