Top "Spring-annotations" questions

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

result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off

org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'org.springframework.cache.annotation.AnnotationCacheOperationSource#0': Bean with name 'org.…

caching transactions aop spring-annotations
AbstractWizardFormController using Annotated @Controllers

In Spring Framework , AbstractWizardFormController seems deprecated. How to implement multiple pages form in the Spring MVC Framework. (I am not …

java spring spring-mvc spring-annotations
@Secured does not work in controller, but intercept-url seems to be working fine

It doesn't look like @Secured on methods in my @Controller are being read. When security filtering based on sec:intercept-url …

spring spring-mvc spring-security spring-annotations
Using static variables in Spring annotations

I'm using spring's PreAuthorize annotation as follows: @PreAuthorize("hasRole('role')"); However, I already have 'role' defined as a static String …

java spring spring-security spring-annotations
Optional @PropertySource location

I'm using Spring 3.2 in a web application and I'd like to have a .properties file within the classpath which contains …

java spring spring-annotations
Spring MVC controller inheritance and routing

In my Spring MVC webapp I have a generic RESTful controller for CRUD operations. And each concrete controller had to …

java spring spring-mvc spring-annotations
Spring Security @PreAuthorization pass enums in directly

My question is a duplicate of Custom annotation with spring security but it went unanswered and I believe there should …

java spring spring-security authorization spring-annotations
Spring : @Transactional @Scheduled method throws TransactionException

(Still a bit new to Spring) I need to have a service method that is at the same time @Scheduled …

java spring hibernate spring-annotations
How @PostFilter and @PreFilter work

Being new to spring annotations, I need a clarification for the below code. @PostFilter("hasPermission(filterObject, 'READ') or hasRole('ROLE_…

java spring spring-security annotations spring-annotations