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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:47:17+00:00 2026-06-16T17:47:17+00:00

Spring2.5 had a feature called dependency-check which can be given for a bean tag

  • 0

Spring2.5 had a feature called dependency-check which can be given for a bean tag and default-dependency-check which can be given at the parent level <beans> tag.

Eg: <bean id="soandSo" class="..." dependecy-check=""/>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" 
    default-dependency-check="all">

however in Spring3.x these attributes are deprecated, is there any alternate way of setting dependency-check apart from using @Required attribute and any equivalent to default-dependency-check in Spring3.x??

  • 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-16T17:47:18+00:00Added an answer on June 16, 2026 at 5:47 pm

    This feature is no loger supported since Spring 3.x. You can achieve similar result by telling Spring to respect @Required and @Autowired annotations. It can be done using any of the following configuration options within XML context file:

    1. <context:annotation-config/>
    2. <context:component-scan base-package="*"/>

    You can skip those options by registering appropriate BeanPostProcessors such as AutowiredAnnotationBeanPostProcessor and RequiredAnnotationBeanPostProcessor.

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

Sidebar

Related Questions

String string1 = abCdefGhijklMnopQrstuvwYz; String string2 = ABC; I had been using string1.startsWith(string2), which
Has anyone had any experience with Spring transactions (class-level, with proxy, annotation-driven) not getting
I had a loginform previously which looked like following <div class=span-10 last> <c:url value=/j_spring_security_check
I asked a general Spring question: Auto-cast Spring Beans and had multiple people respond
I have been experimenting with using Spring 3.1's bean definition profiles and nested beans.
I had the following set-up which worked perfectly fine: @Service public class MyService {
i had a look at spring roo.I found that we can generate entities ,contollers
I had a Spring based java app that connected to PayPal using their Soap
I had a Spring 3 project that was using LDAP for Authentication and Authorities.
i had use the spring3.1 ibatis2.x and mysql5.5. then i wanna use the replication

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.