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

  • Home
  • SEARCH
  • 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 7597801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:14:48+00:00 2026-05-30T22:14:48+00:00

I have been in the process of upgrading a Spring MVC app that was

  • 0

I have been in the process of upgrading a Spring MVC app that was using Framework 2.5.6, Security 2.0.4, and Web Services 1.5. In researching the newer versions, I’ve realized that Spring 3.1.0 and 3.0.7 deprecate the inheritance for controllers in favor of annotation driven configuration. I understand that annotations are the way forward with Spring configuration but in my situation the people who will be configuring default values for dependency injection cannot edit src files.

The process at my company is like this:

  • I am the main developer for the Java EE app.
  • We have another team of designers and less-skilled developers who customize jsp, css, (some)
    javascript, xsl, the XML Spring configuration, and the Spring
    properties files.
  • We have over 100 active custom implementations, each with
    different default values to be injected into beans and some with i18n messaging.
  • Instead of having 100s of different themes in our core product, we have a very smart build process that allows our ‘customization team’ to maintain the custom applications within their own source control system. The build script will overwrite any files from the custom application to the core application before compiling and deploying to Tomcat. Therefore, src files are never touched, decoupling the engineering from the aesthetics within our company.

(If I had a chance to build a configuration module into the app, it would have already been done. So for now we’re stuck with managing XML configurations.)

So how would an annotation configuration work in my case? It seems to me like it is not a feasible solution given the architecture of our product. Isn’t the main goal of annotation-driven configuration to have the developer manage dependency injection within src files instead of XML files?

Does anyone know a way to have only XML configuration in Spring 3?

EDIT:
I found this: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-java-combining so I think I can migrate all the controllers to use annotations but leave other beans as they are since controller configurations are not touched very often by our customization team.

  • 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-30T22:14:49+00:00Added an answer on May 30, 2026 at 10:14 pm

    i’m not a great expert on this, but i am using spring 3.1 in a current project and there’s still plenty of xml configuration: the application as a whole is assembled from a bunch of beans defined in foo-servlet.xml (so i have daos that are plugged into controller beans etc). my controllers certainly have annotations on the methods associated with incoming HTTP requests, but they are for things like URL parameters – the kind of details that are tightly tied to the code. and i use annotation and type-driven injection in tests because it’s quick and easy.

    so i’m a bit confused reading your question. it’s possible i am misunderstanding, or my case is different, but it sounds a bit like you’re over-estimating how much you need to use annotations. i use them where it seems to make sense, but stick with xml where that seems best…

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

Sidebar

Related Questions

I have a python module that I've been using over the years to process
I've been working on a web app using the CodeIgniter framework and I am
In the build process for a .NET C# tool, I have been using ILMerge
I am in the process of learning the Yii Framework. I have been following
I am to process single PDFs that have each been created by 'merging' multiple
I have a web app using thin clients (bosanova terminals) as the front end
I have been researching for sometime now regarding the process to install android sdk
I am running cherokee to serve a django app using uwsgi. I have been
I have been tracing a process with strace and have seen entries such as:
I have been tasked with automating our build process with msbuild. We have about

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.