Top "Spring-3" questions

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

Understanding Spring @Autowired usage

I am reading the spring 3.0.x reference documentation to understand Spring Autowired annotation: 3.9.2 @Autowired and @Inject I am not able …

java spring autowired spring-3
Difference between <context:annotation-config> and <context:component-scan>

I'm learning Spring 3 and I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan&…

java spring configuration annotations spring-3
When use ResponseEntity<T> and @RestController for Spring RESTful applications

I am working with Spring Framework 4.0.7, together with MVC and Rest I can work in peace with: @Controller ResponseEntity<…

spring spring-mvc spring-3 spring-4
What's the difference between <mvc:annotation-driven /> and <context:annotation-config /> in servlet?

I am migrating from Spring 2.5 to Spring 3. They have introduced <mvc:annotation-driven /> which does some black magic. This …

spring spring-mvc spring-3
Multiple scenarios @RequestMapping produces JSON/XML together with Accept or ResponseEntity

I am working with Spring 4.0.7 About Spring MVC, for research purposes, I have the following: @RequestMapping(value="/getjsonperson", method=RequestMethod.…

spring rest spring-mvc spring-3 spring-4
How to register Spring @Configuration annotated class instead of applicationContext.xml file in web.xml?

I am using jsf and spring together in web application. I have configured datasource and session factory in one configuration …

java spring spring-3 spring-annotations
Spring 3 Security j_spring_security_check

I'm trying to learn, how spring security works, so I've downloaded some sample project and then I tried to implement …

java spring spring-mvc spring-security spring-3
BeanFactory not initialized or already closed - call 'refresh' before accessing beans

I'm trying to add spring security to a regular JSF application. After repeated tries and I'm failing with the following …

spring-security spring-3
How to set 'Content-Disposition' and 'Filename' when using FileSystemResource to force a file download file?

What is the most appropriate, and standard, way to set the Content-Disposition=attachment and filename=xyz.zip using Spring 3 FileSystemResource? …

java spring spring-3 content-disposition
Spring 3.0.6 MVC @PathVariable and @RequestParam blank/empty in JSP view

I have been trying to get an incredibly simple controller/view set up, and just can't make it work. In …

spring spring-3 spring-annotations