Top "Spring-annotations" questions

A common placeholder for issues related to the use of annotations with the Spring framework

How to declare a Spring bean autowire-candidate="false" when using annotations?

I am using @ComponentScan and @Component to define my spring beans. What I would like is to declare one of …

java spring spring-annotations
Inject application properties without Spring

I would like a simple, preferably annotation-based way to inject external properties into a java program, without using the spring …

java spring properties annotations spring-annotations
@Value is always null

I have a situation where my attempt to use a @Value annotation results in the value being a null. This …

spring-boot spring-annotations spring-properties
Spring MVC Controller NumberFormat Annotation Pattern Issue in BigDecimal

I have a spring controller which is taking multiple BigDecimal RequestParams. My application locale is en_US but just for …

java spring spring-mvc spring-annotations numberformatexception
Is there a way in Spring to autowire all dependencies of a given type?

I'm using annotations-based wiring (ie @Configurable(autowire=Autowire.BY_TYPE)) for a given class, and I'd like to wire all …

java spring spring-annotations