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