[Spring] registering bean by private method
Configruation class에 Bean을 등록하는 함수를 private으로 지정했다. 그랬더니 아래 에러가 발생했다. Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: @Bean method 'discountPolicy' must not be private or final; change the method's modifiers to continue Offending resource: hello.core.AppConfig at org.springframework.beans.factory.parsing.FailFastProblemR..
Backend/Trouble Shooting
2020. 11. 12. 22:12
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- locality of reference
- divide and conquer
- synchronized
- computer science
- Cache coherence
- java
- Thread-safe
- codeforce
- Quick Sort
- 컴퓨터구조
- Insertion Sort
- 운영체제
- 건강
- math
- 운동
- 개발자
- JVM
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함