에러 해결

may_yun·2023년 1월 4일
0
post-custom-banner

"status": 400,
"error": "Bad Request",
"trace": "org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of com.codelion.mutsasns.domain.comment.dto.CommentModifyRequest (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator); nested exception is com.fasterxml.jackson.databind.exc.

  • request 받을 때 기본 생성자 만들어주지 않음

Resolved [org.springframework.web.bind.MissingPathVariableException: Required URI template variable 'pastId' for method parameter type Long is not present]


Failed to create query for method public abstract java.util.Optional com.codelion.mutsasns.repository.LikeJpaRepository.findByUserId(java.lang.Long)! No property 'userId' found for type 'Likes' Did you mean ''users''

Likes likesState = likeJpaRepository.findByUserId(getUser.getId()).get();
  • 해결
Likes likesState = likeJpaRepository.findByUsers(getUser.getId()).get();

"org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [1] did not match expected type [com.codelion.mutsasns.domain.user.entity.Users (n/a)];


Skipped breakpoint at com.sun.proxy.$Proxy148.toString()+0 because it happened inside debugger evaluation
속도


com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

  • mysql server 꺼짐

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postController' defined in URL [jar:file:/app/MutsaSNS-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/com/codelion/mutsasns/controller/PostController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postsService' defined in URL [jar:file:/app/MutsaSNS-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/com/codelion/mutsasns/service/PostsService.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'jwt.token.secret' in value "${jwt.token.secret}"


profile
개발 일지
post-custom-banner

0개의 댓글