23.02.20
- 43일 해야할 일
- [x] 자바 이론 공부 (String Buffer 클래스의 메서드 들을 차례!)
- [x] spring 강의듣기! (복습! + HTTP강의 5개 듣기)
- [x] 알고리즘 문제 1개 풀기
- [x] 개인과제 오류 고쳐보기!
- [x] 팀과제 하기
- [x] 스프링 스터디 참석
눈물 나는 에러놈들 non-static method <S>save(S) cannot be referenced from a static context
왜 나오는 걸까 고민고민고민고민하다가;;;;;;;;
다른 분께 물어봤더니 주소창을 하나 주셨다…. 거기에 따르면 내가 뭔가 잘못 호출했다…오타오타…언제 찾나 했는데.. 찾음…
그 결과.. 잠시 울고 와야겠다… 이놈의 오타…
//save에 에러발생 왜 나는 것인가 한참을 고민함;;;;
Reply reply = ReplyRepository.saveAndFlush(Reply.builder()
// replyRepository를 대문자로 써서 그랬다...
Reply reply = replyRepository.saveAndFlush(Reply.builder()
복합키 클래스
Invocation of init method failed; nested exception is org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: com.example.replyblog.replay.entity.Reply. Blog in com.example.replyblog.blog.entity.Blog.comments
Invocation of init method failed; nested exception is org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: com.example.replyblog.replay.entity.Reply.Blog in com.example.replyblog.blog.entity.Blog.comments
Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'blogController' method
// @GetMapping("/")
// public ModelAndView home() {
// return new ModelAndView("index");
// }
GetMapping이 2개여서 겹쳐서 난 오류!!
아니.. 저번에도 이랬는데 ㅠㅠ계속 실수합니다 ㅠㅠ 다음엔 실수하지 말기!
[THYMELEAF][http-nio-8080-exec-3] Exception processing template "login": Error resolving template [login], template might not exist or might not be accessible by any of the configured Template Resolvers
@Valid 유효성검사
BindingResult
Request processing failed; nested exception is com.example.replyblog.util.CustomException
요청하는 과정에서 실패! → 토큰 변경 안해서 생긴 오류;;
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: not-null property references a null or transient value : com.example.replyblog.blog.entity.Blog.title; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value : com.example.replyblog.blog.entity.Blog.title] with root cause
ㅋㅋㅋㅋㅋ 제가… 전체적으로 수정했는데.. titlename을 title으로 변경한걸 깜빡하고 왜 안되지 하고 있었습니다… 하하..