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 |
Tags
- batch
- spring batch 코드
- JPA mapping
- JPA
- spring bean
- Spring Data REST
- spring-webmvc #코드읽기
- docker
- 코드 리뷰
- ORM
- 세미나
- static inner class
- spring-mvc
- Spring Batch
- IntelliJ
- spring boot tomcat
- Spring
- spring-webmvc
- spring camp
- tomcat
- spring pid
- Spring Data JPA
- 톰캣
- REST API
- spring boot
- ApplicationPidFileWriter
- Data REST
- spring jpa
- SuperTypeToken
- JUnit
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