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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:57:24+00:00 2026-06-11T16:57:24+00:00

When Spring deals with configuration filenames, there are some defaults… When registering a DispatcherServlet

  • 0

When Spring deals with configuration filenames, there are some defaults…

  • When registering a DispatcherServlet in my web.xml, Spring looks up by default for a file named <servletname>-servlet.xml
  • When registering a ContextLoadListener in my web.xml, Spring looks up by default for a file names applicationContext.xml

Therefore I ask: When I am using Spring Security, does Spring looks up a default filename? Or do I always have to configure it manually through <context-param> <param-name> contextConfigLocation </param-name>filename</param-value></context-param>…???

  • 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-06-11T16:57:26+00:00Added an answer on June 11, 2026 at 4:57 pm

    Spring Security doesn’t have its own application context, it uses the one created by ContextLoaderListener (i.e. applicationContext.xml).

    So, you should put your Spring Security configuration into applicationContext.xml, or, if you want to put into separate file, you need to import that file from applicationContext.xml:

    <import resource = "security.xml" />
    

    or declare it in addition to applicationContext.xml in contextConfigLocatoion <context-param>:

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>applicationContext.xml, security.xml</param-value>
    </context-param>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that's based on Spring and the application contexts, applicationContext.xml
Spring MVC uses a DispatcherServlet to route control to an appropriate Controller. But where
In Spring MVC Hibernate application , when i am trying to use properties file
I am using Spring MVC for a web application and I am working with
I have a string with file content . But my function deals with file
I have a large application spread across multiple Spring bean definition xml files. In
Our application deals with millions of records and we use spring with jpa. Currently
We've got a Spring based web application that makes use of Hibernate to load/store
I've inherited some JSF Spring code, and can see instead of injecting the Spring
I have developed an application with Spring MVC that deals with bulk data insert/update.

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.