일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 타임리프
- Java
- thymeleaf
- 멱등성
- interceptor
- 자바
- Spring Security
- 이펙티브자바
- TDD
- 알고리즘
- 파이썬
- JPA
- 캐시
- EntityGraph
- BFS
- 코딩테스트
- @Transactional
- 배낭문제
- spring
- 동시성처리
- lombok
- AOP
- cache
- JVM
- Garbage Collection
- effective java
- 클린아키텍처
- EffectiveJava
- collapse
- Transactional
- Today
- Total
목록Front (2)
Jinnie devlog

Controller에서 model.addAttribute(studyGroupList)로 리스트를 넘길 때 만약 null이 넘어간다면, model.addAttribute(studyGroupList) 타임리프에서 size()로 접근하는 경우 다음과 같은 에러와, 에러메시지가 나타난다. Model의 addAttribute 메소드를 찾아보면, 위와 같이 empty일 때 무시하라는 코드를 확인할 수 있다. 타임리프에서 size() 대신 #lists.isEmpty(studyGroupList) 로 접근하면, 오류 없이 사용할 수 있다. 또는, model.addAttirubte의 매개변수로 화면에서 사용할 변수명인 String 값을 같이 넘겨주면 값이 null이어도 빈 객체로 넘어가게 되어 오류 없이 사용할 수 있다...

게시글의 댓글 수정 로직을 구현할 때 bootstrap의 collapse 기능을 사용하였다. https://getbootstrap.com/docs/3.3/javascript/#collapse JavaScript · Bootstrap Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater getbootstra..