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 |
Tags
- MongoDB
- 트랜잭션
- 추상클래스
- group by
- 오블완
- 리눅스
- DBMS
- spring
- MariaDB
- docker
- java
- oracle
- SQL
- Linux
- 호이스팅
- rsync
- git
- 명령어
- Javascript
- top
- 인터페이스
- 차이점
- mysql
- 티스토리챌린지
- 자바
- IntelliJ
- PostgreSQL
- mssql
- analytics4
- JPA
Archives
- Today
- Total
hanker
Spring Error - Cannot resolve method 'of' in 'List' 본문
반응형
List.of를 사용하려고 하는데, 오류가 발생했다.
내용을 보면 List안에 of메소드를 찾을 수 없다고 나오는데, 확인해보니 List.of는 java9 버전 이상부터 사용가능하다.
그래서 대신 Arrays.asList를 사용해서 처리했다.
Arrays.asList와 List.of의 차이점은 분명히 있지만 어떤 방식에 사용하냐에 따라 다르다고 한다.
그래서 차이점을 찾아보고 알맞게 사용하시길..
반응형
'SPRING > SPRING-ERROR' 카테고리의 다른 글
Spring error - Repeated column in mapping for entity: ~ (0) | 2021.05.12 |
---|---|
Spring error - java.lang.IllegalArgumentException : Can not set int field ~ to null value (0) | 2021.05.12 |
SpringError - java.lang.ArrayIndexOutOfBoundsException 에러 (0) | 2021.04.29 |
Intellij - Spring Boot Configuration Annotation Processor not configured Error (0) | 2021.04.18 |
Spring h2-console 접속 안될때 (403 Error) (0) | 2021.04.17 |