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