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
- 딸꾹질
- 내일부터출근
- 창의적인요리
- 초코만두
- 식곤증
- 라떼이야기
- 한외마약
- 터미널사진사이즈변경
- 터미널사진편집
- 에스프레소샷
- 자연의과학
- 딸꾹질원인
- 코포나시럽
- 탄수화물소화
- 만두레시피
- 고양이귀여움
- 건강정보
- 고양이
- 거미
- 감기약
- 면접준비
- 디저트아이디어
- 카페일상
- 피스타치오라떼
- 거미줄의비밀
- 딸꾹질대처법
- 딸꾹질멈추는법
- 벌루닝
- 의약품안전
- 생물학습
Archives
- Today
- Total
SP'S SPARKING
[해결] "this.custRepository" is null 본문
문제 상황
CardController 에서 CustomerRepository를 선언하여 getOne을 사용했는데, 에러
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Dec 08 10:49:43 EST 2021
There was an unexpected error (type=Internal Server Error, status=500).
Cannot invoke "com.spring.web.repository.CustomerRepository.getOne(Object)" because "this.custRepository" is null
해결:
CardContorller 에서 CustomerRepository를 선언하기 이해 정의할 때,
private CustomerRepository custRepository;
위에 @Autowired 를 붙여줌
@Autowired
private CustomerRepository custRepository;
728x90
'HAPPYHACKING > ERROR SOLVED' 카테고리의 다른 글
[SOLVED] HEROKU ERROR H10 status 503: Checking what error it is (0) | 2022.10.06 |
---|---|
[해결] aws ecr get-login-password -> Unable to parse config file: (0) | 2022.07.28 |
[해결] this version of the Java Runtime only recognizes class file versions up to 52.0 (0) | 2022.07.28 |
[해결] Heroku "npm ERR! Missing: '' from lock file" error (0) | 2022.07.28 |
[해결] Access to XMLHttpRequest 에러 (0) | 2022.07.27 |