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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:03:48+00:00 2026-06-04T15:03:48+00:00

There are two methods of using Spring (Annotations/XML). In XML we specify everything in

  • 0

There are two methods of using Spring (Annotations/XML). In XML we specify everything in XML files. In annotations we use commands like <context:component-scan base-package="com.xyz" /> <aop:aspectj-autoproxy /> etc. Thus in annotations there is complete scan of packages to identify dependencies etc. So being a beginner i want to know its overall effect on our application.

EDIT
Please don’t make a fight over initialization of Spring. Its a general question. You can take an example of Hibernate also. Struts or anything else.

Missed out Java Config. So about that too.

  • 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-04T15:03:49+00:00Added an answer on June 4, 2026 at 3:03 pm

    To my knowledge a good mix up of both patterns will lead to a good application.

    XML – as it grows become more verbose and tough to maintain.

    Annotations – will make the code more easier to read. Well you can maintain the scanning strictly at the package levels by configuring in the xml so it should not affect your application.

    Since the xml is a mandatory thing for initial spring instantiations you cannot avoid that. So ideally a mix up will be a great thing.

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

Sidebar

Related Questions

I am using servlet there is two method redirect and forward both are send
In EXT.Panel, there are two methods for collapsing/expanding a Panel. collapse(Boolean animate) and expand
I wrote two methods to check there performance public class Test1 { private String
According to the MSDN documentation for the RSA class there are two RSA.Create() methods
Erg, I'm trying to find these two methods in the BCL using Reflector, but
These two methods appear to behave the same to me public IEnumerable<string> GetNothing() {
If these two methods are simply synonyms, why do people go to the trouble
I came across these two methods to concatenate strings: Common part: char* first= First;
I have these two methods on a class that differ only in one method
I thought these two methods were (memory allocation-wise) equivalent, however, I was seeing out

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.