πŸ”¨[Spring] BeanDefinitionStoreException: Failed to parse configuration class

λ°”μœ„λ„ˆκ΅¬λ¦¬Β·2022λ…„ 8μ›” 30일
0
post-thumbnail

μŠ€ν”„λ§ μž…λ¬Έ κ°•μ˜λ₯Ό λ“€μœΌλ©° μ‹€μŠ΅ν•˜λ˜ 쀑 λ‹€μŒκ³Ό 같은 λ¬Έμ œκ°€ λ°œμƒν–ˆλ‹€.

BeanDefinitionStoreException: Failed to parse configuration class [hello.hello_spring.HelloSpringApplication];

λ‚΄μš©μ„ 잘 읽어보면

Annotation-specified bean name 'springConfig' for bean class [hello.hello_spring.service.SpringConfig] conflicts with existing, non-compatible bean definition of same name and class [hello.hello_spring.SpringConfig]

'SpringConfig' 파일이 μ€‘λ³΅λ˜μ–΄ μžˆμ–΄ 좩돌이 λ°œμƒν•˜λŠ” κ²ƒμ΄μ—ˆλ‹€.

service ν΄λ”μ˜ SpringConfig νŒŒμΌμ„ μ‚­μ œν•΄μ„œ ν•΄κ²°!

0개의 λŒ“κΈ€