[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
- Quick Sort
- codeforce
- locality of reference
- Cache coherence
- math
- Insertion Sort
- java
- divide and conquer
- 운동
- Thread-safe
- synchronized
- 건강
- JVM
- 운영체제
- computer science
- 개발자
- 컴퓨터구조
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함