Quantcast
Channel: Spring @Required & @Mandatory annotations - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Josh Edwards for Spring @Required & @Mandatory annotations

@Required implies that you are using setter injection, instead of constructor injection. These are designed to be two options - not to do both options at the same time. Note this from Spring's blog - @...

View Article



Spring @Required & @Mandatory annotations

This is BeanClass.java package com.practice.spring; import org.springframework.beans.factory.annotation.Required; import com.apress.springrecipes.sequence.Mandatory; public class BeanClass { private...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images