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