Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JPA mapping
- spring boot tomcat
- spring-webmvc #코드읽기
- Spring Data REST
- Spring Data JPA
- tomcat
- spring-mvc
- docker
- SuperTypeToken
- spring-webmvc
- REST API
- spring batch 코드
- 세미나
- batch
- Data REST
- spring boot
- spring pid
- static inner class
- JPA
- JUnit
- spring jpa
- 코드 리뷰
- spring camp
- IntelliJ
- 톰캣
- Spring Batch
- ORM
- ApplicationPidFileWriter
- Spring
- spring bean
Archives
- Today
- Total
목록java UnsupportedOperationException (1)
woniper
AbstractList.add(E)는 쓸 수 없어!
개발 중에 list.addAll(T); 와 같은 코드 작성할 일이 있었다. 하지만 계속 java.lang.UnsupportedOperationException 에러가 나는 게 아닌가? 결론부터 말하자면 생각 없이 Collections.emptyList();로 초기화했기 때문이다. java.lang.UnsupportedOperationException java 문서에는 이 Exception을 이렇게 설명한다. 요청한 오퍼레이션이 지원되지 않는 경우 Exception 발생 UnsupportedOperationException는 Java Collection Framework에 Exception 클래스다. 그럼 Java Collection Framework를 사용하는 경우 비정상 요청을 한 경우 throw 되는..
Java
2017. 9. 7. 08:30