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 7536829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:40:59+00:00 2026-05-30T06:40:59+00:00

Does Spring provide any way to output the actual content of the classpath environment

  • 0

Does Spring provide any way to output the actual content of the classpath environment variable when it is loading a resource in a context configuration file?

<!-- Import the special context --> 
<import resource="classpath:mySpecialApplicationContext.xml"/> 

I set the Log4J logging level to ALL for Springframework classes but this value does not appear to be logged by the framework. I am trying to figure out if Spring is loading this from a dependency, and I want to see the classpath setting during application runtime. The application is built by Maven with many dependencies.

If there are two or more mySpecialApplicationContext.xml‘s in the classpath, which one does Spring use?

Thank you.

  • 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-30T06:41:00+00:00Added an answer on May 30, 2026 at 6:41 am

    You can see the relevant (I think) source code at http://goo.gl/9dK2c

    In short:

    1. No, the classpath is not logged

    2. The details of what would be loaded when there is more than one matching resource in the classpath are ClassLoader dependent – the DefaultResourceLoader uses the thread’s classloader, but typically, the first one found would be used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way in a C# iterator block to provide a block of
Does DOM API provide HTMLTitle Object that implements Node interface? document.title returns only string
Does the Spring Security plugin for Grails support automatically locking an account after X
Does anybody has an experience with Spring Integration project as embedded ESB? I'm highly
Does it need manually close InputStream (bean.getContentAsStream()) in java after pass to Spring JDBC
I added Comet servlet into Spring web application. This servlet does not differ from
Is there a way to override extension methods (provide a better implementation), without explicitly
Does anyone know of any samples that use the DataTables jquery plugin with a
Given a connection object (or series of them), does anyone know of a way
Does JSP or any related lightweight technology like JSTL perform HTTP POST data grouping,

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.