Top "Spring-annotations" questions

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

What is a Spring "stereotype"?

On a SpringSource blog entry, the following sentence references a stereotype. Because @Controller is a specialization of Spring's @Component Stereotype …

spring spring-annotations stereotype
how to specify a bean as non lazy with annotations

Does anyone know how to specify a bean as non lazy when using annotations to configure the bean?

spring annotations spring-annotations
Spring annotations @ModelAttribute and @Valid

What are the advantages of using @ModelAttribute and @Valid? Which are the differences? Is it possible to use them together?

spring spring-mvc spring-data spring-annotations
Benefits of JavaConfig over XML configurations in Spring?

Earlier the configurations used to be in hard coded in the code, later it was externalized to .property files (for …

spring annotations spring-3 spring-annotations
Spring 4.1 @JmsListener configuration

I would like to use the new annotations and features provided in Spring 4.1 for an application that needs a JMS …

spring spring-annotations spring-jms
Spring SimpleAsyncTaskExecutor and ThreadPoolTaskExecutor with @Async annotation

I have the following configutation: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" …

spring spring-integration spring-annotations
Spring @Value empty list as default

Is there a way to set an empty list as default value for a property in Spring, something like: @Value("${…

java spring spring-annotations
Spring @Value escape colon(:) in default value

I have the following property annotated with @Value. I have a default value defined using the default separator of ':" @…

spring spring-annotations spring-properties
Spring has @Component annotation, what is the real purpose of the annotations @Repository, @Service, @Controller?

I've developed web applications for a few years with Spring framework. Recently, a fresher of my team asked me a …

spring-annotations
Maven: package io.swagger.annotations does not exist

I want to document my project with swagger. I add swagger annotations and io.springfox dependencies to my project but …

java maven swagger-2.0 spring-annotations springfox