Top "Spring-3" questions

Version 3.x of the Spring Framework, use [tag:spring] for general Spring related questions.

How to get a method's annotation value from a ProceedingJoinPoint?

I have below annotation. MyAnnotation.java @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface MyAnnotation { } SomeAspect.java public class SomeAspect{ @…

java spring spring-aop spring-3 java-ee-7
How to Pass custom objects using Spring's REST Template

I have a requirement to pass a custom object using RESTTemplate to my REST service. RestTemplate restTemplate = new RestTemplate(); MultiValueMap&…

spring-mvc spring-3 rest-client resttemplate
RestTemplate post for entity

My post method gets called but my Profile is empty. What is wrong with this approach? Must I use @Requestbody …

spring spring-mvc spring-3
Spring 3 @ImportResource with multiple files

I'm trying to find the syntax for importing multiple spring xml context files using Spring 3 @ImportResource annotation. I have tried …

java spring spring-3
org.hibernate.HibernateException: No Session found for current thread

I'm getting the above exception with Spring3 and Hibernte4 The following is my bean xml file <?xml version="1.0" encoding="…

spring hibernate spring-3 hibernate-4.x
No AuthenticationProvider found for UsernamePasswordAuthenticationToken

my web.xml config is <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.…

java spring spring-mvc spring-security spring-3
EJB 3.1 or Spring 3.. When to choose which one?

EJB achieved many improvements in 3.x versions, Spring is also commonly used and version 3 is a good alternative. There are …

comparison ejb-3.0 ejb-3.1 spring-3
Spring MVC 3 : Ambiguous mapping found

I am playing with spring MVC 3.1 and testing different features. I wanted to verify following statement taken from @RequestMapping#value …

spring-mvc spring-3
Encoded slash (%2F) with Spring RequestMapping path param gives HTTP 400

This is not a duplicate referenced question, because it is Spring specific. Whoever added that (3 years after the fact!) didn't …

spring rest glassfish glassfish-3 spring-3
JDBCTemplate queryForMap for retrieving multiple rows

Can I use queryForMap if there are multiple rows returned by the query. For a single row, the below code …

java spring spring-3 jdbctemplate