Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6585761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:42:16+00:00 2026-05-25T16:42:16+00:00

I have a large Spring 2.x-based application with a couple of hundreds of applicationContext.xml

  • 0

I have a large Spring 2.x-based application with a couple of hundreds of applicationContext.xml files and several thousands beans/bean factories.

Most of these XML configurations say something like default-autowire="byName", effectively turning on the autowiring, but only a fraction of beans is actually autowired. Most of the bean properties are set explicitly.

(This is to historical reasons, I guess that’s how you call it when you were not clever enough in the past.)

Now we would like to remove autowiring at all. We believe that only a small fraction of beans is actually autowired – but we do not know, what and were exactly. My question is:

How can we find out what and were exactly is autowired by Spring?

Ideally, we need to get a list of beans/properties so that we could inject these explicitly in out XML configurations. But before diving into Spring internals with a debugger, I decided to ask if someone on SF has maybe already solved a similar task.

ps. I don’t have an intention to discuss whether autowiring is good or bad. We have a number of internal technical reasons to remove autowiring, that’s all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:42:17+00:00Added an answer on May 25, 2026 at 4:42 pm

    You can try to enable DEBUG logging in Spring. It prints a lot of information during initialisation phase. I bet auto-wiring messages are also printed out. You just need to find that message and then parse the log file after application is fully initialised.

    UPDATE: I believe AbstractAutowireCapableBeanFactory is responsible for auto-wiring logic. You can check autowireByName method. It produces the following log message which you can search for in the log file:

    logger.debug("Added autowiring by name from bean name '" + beanName +
        "' via property '" + propertyName + "' to bean named '" + propertyName + "'"); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large application spread across multiple Spring bean definition xml files. In
I have a Spring Web MVC application that I'd like to serve a large,
I have a couple of questions regarding a modular GWT based application framework. I
I have this language based application that has language files for each part of
I'm working on an Spring application which has a large number of beans -
i have large numbers of text files and i am in problem that i
We have a mid-size SQL Server based application that has no indexes defined. Not
I have a web application that creates XML feeds on the fly, depending on
I have a Spring MVC app where I am using a singleton bean that
I have large text files upon which all kinds of operations need to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.