Could it be configured without @Configuration?

2 views
Skip to first unread message

kono...@gmail.com

unread,
Aug 25, 2017, 9:28:49 PM8/25/17
to Getting started with Spring Framework

Hi, I'm quite get confused by ch07-bankapp-more project.

I am not sure whether it has been intended, but there is no @Configuration in BankOtherObjects.class.

And surprisingly, it works without @Confiugration annotation.

I searched spring reference, and it mentioned that context.register() needs @Configuration, @Component or JSR-330's annotaion.

It is very weird how Spring frameworks find out without @ Confiugration.

I deleted all @Configuration annotaion in ch07-bankapp-more project.

And it normally works as well.

Could I get an any idea?
Reply all
Reply to author
Forward
0 new messages