Announcement Announcement Module
Collapse
No announcement yet.
web application, configuration files location Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • web application, configuration files location

    Hi; i find quite difficult to find the precise way the configuration file is searched at container startup.
    I collect some information that states that the container:
    1) searches for a file that has the same name of the class, but what is the actual class name (CoC)?
    2) looks for a contextParam with name=contextConfigLocation

    Is it right? Do you have more info on point 1?

    thanks

  • #2
    If you don't specify contextConfigLocation in web.xml, the listener by default (convention over configuration) will try to bootstrap the application context from a file named applicationContext.xml located directly under the /WEB-INF folder. By specifying the parameter, you choose not to use convention over configuration and can specify a different filename and/or location (you should still choose a place under WEB-INF or a subdirectory, so that your Spring configuration files are not accessible by the client).

    Comment

    Working...
    X