简体   繁体   中英

How to find out Spring default bean Registrations

We have the following XML elements.

 <mvc:annotation-driven />
 <context:component-scan />
 <context:annotation-config/>

etc,

Is there a way to find out (from eclipse or any other method), what classes these configs load/register by default? Or is there a documentation on this one? (I know we can go through spring reference. But its spread across to be able to use this as a reference)

Perhaps the laziest way to do it is to crank up the log4j level for the org.springframework logger to TRACE. (ie the Log4j equivalent of turning it to 11 :) It will report what beans are loaded into the context.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM