Light Blue Pointer
본문 바로가기

Developing/Trouble shooting8

@EnableJpaAuditing 이 한 곳에서만 정의되어야 하는 이유 습관처럼 QueryDsl을 사용하기 위해 JPAConfig를 만들려고 했다@Configuration@EnableJpaAuditingpublic class JPAConfig { @PersistenceContext private EntityManager entityManager; @Bean public JPAQueryFactory queryFactory() { return new JPAQueryFactory(entityManager); }}  그랬더니 다른 곳에서 이미 JPAAuditoing이 되고 있어서 안 된다는 에러가 떴다 overriding = true로 바꾸라는 제안도 있었지만 위험할 것 같아서 하지 않았다 찾아보니 동일한 모듈에 이게 있었다@Configura.. 2024. 9. 5.
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName='root', source='admin', password=<hidden>, mechanismProperties=<hidden>}] with root cause 🚩문제 : MongoDB 연결이 되지 않고 에러 발생2024-05-09T20:16:58.672+09:00 ERROR 23172 --- [core] [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userNa.. 2024. 5. 9.
[Kotlin] Cannot set property id because no setter, no wither and it's not part of the persistence constructor 🚩에러2024-04-25T22:52:54.233+09:00 ERROR 21840 --- [core] [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.IllegalStateException: Cannot set property id because no setter, no wither and it's not part of the persistence constructor public kpring.chat.chatroom.mod.. 2024. 4. 25.
JPA 순환참조/무한루프 문제 해결 (Could not write JSON: Infinite recursion (StackOverflowError)) ⛳문제 발생 : 재귀가 끝나지 않음 @Override public DetailedPostResponse getPost(Long postId, User user) { Post post = getPostById(postId); List userPosts = getUserPostsByPost(post); List allMenus = getMenus(userPosts,post); return DetailedPostResponse.builder() .author(getAuthor(userPosts)) .address(post.getAddress()) .store(post.getStore()) .minPrice(post.getMinPrice()) .deliveryCost(post.getDeliveryCost()) .. 2024. 1. 11.
깃허브 로그인 clone 받은거에서 수정해서 커밋하고 push하려고 하니까 깃허브 로그인 하라고 함 인텔리제이에서 깃허브 Authorization하는 링크가 뜸 2024. 1. 5.
깃허브 이니셜 커밋 지우기 2024. 1. 5.
Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ' ' is not supported] 메서드 path가 틀려도 저렇게 나옴 2023. 12. 6.
Spring Boot 시작 시 A problem occurred configuring root project > Could not resolve all files for configuration ':classpath'. A problem occurred configuring root project 'gameLog'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.5. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.1.5 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.1.5 was found. The consumer wa.. 2023. 11. 23.