Could it be configured without @Configuration?

2 Aufrufe
Direkt zur ersten ungelesenen Nachricht

kono...@gmail.com

ungelesen,
25.08.2017, 21:28:4925.08.17
an 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?
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten