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
- 10951
- Spring
- decorator
- 자료구조
- NamedParameterNotBound
- @NotEmpty
- @ModelAttribute
- gradle
- junit
- 백준
- Linux
- springboot
- BubbleSorting
- 쉬운 계단 수
- @Spring
- 숫자야구
- createQuery
- java
- 여러인수
- 10844
- setParameter
- 자바
- 데코레이터패턴
- 전치행렬 #C
- C
- mycp
- designpattern
- pscp
- 디자인패턴
- 점세개
Archives
- Today
- Total
...
[JUnit]Named parameter not bound 에러 본문
//findByName
public List<Member> findByName(String name){
return em.createQuery("select m from Member m where m.name = :name",Member.class)
.setParameter("name",name)
.getResultList();
}
}
createQuery를 할 때 setParameter를 제대로 지정해주지 않으면 발생하는 에러
까먹지말ㅣㅇ기
'이것저것 > 오류 해결' 카테고리의 다른 글
[Gradle/Spring]finished with non-zero exit value 1 오류 해결 (0) | 2022.05.04 |
---|---|
[Spring Boot] @NotEmpty 어노테이션이 import 되지 않을 때 (0) | 2022.04.17 |
Spring Test 오류 해결 [FAILURE: Build failed with an exception] (0) | 2022.04.06 |
JPA /Maven 이용시 Error:java: error: release version 5 not supported 해결 (0) | 2022.03.26 |
H2 연결 에러가 발생하였을 때 해결 방법 (0) | 2022.03.26 |
Comments