Top "Spring-3" questions

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

@EnableTransactionManagement annotation with 2 transaction managers

I am using @Configuration annotation for configuration of spring instead of xml file. I am configuring 2 datasources with different session …

java spring spring-3 spring-annotations
Can @PathVariable return null if it's not found?

Is it possible to make the @PathVariable to return null if the path variable is not in the url? Otherwise …

java spring-3 spring-annotations path-variables
Spring MVC: How to remove session attribute?

Example of using @SessionAttributes below. How to clear user session attribute after wizard finished ? In my example after returning to /…

spring-mvc spring-3
no declaration can be found for element 'mvc:annotation-driven'

I have the requirement of returning JSON/XML data from my controller.From what i found,I needed @ResponseBody in …

java xml spring-mvc annotations spring-3
RequestMapping with multiple values with pathvariable - Spring 3.0

@RequestMapping(value = {"/userDetails", "/userDetails/edit/{id}"}, method = RequestMethod.GET) public String userDetails(Map Model,****) { //what goes here? } What will be …

java spring spring-mvc spring-3
Spring: Attaching @Qualifer to Java-configured beans

In spring, you can XML-configure a bean to have a qualifier. I can't seem to find how I can attach …

java spring spring-3
"The matching wildcard is strict, but no declaration can be found for element 'http'" Error

I am trying to configure NTLM authentication, but receive error: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration …

java spring spring-security ntlm spring-3
When use AbstractAnnotationConfigDispatcherServletInitializer and WebApplicationInitializer?

I am working with Spring 4.0.7 I did a research about configure Spring MVC through JavaConfig. Practically until yesterday I have …

spring spring-mvc spring-3 spring-4
Add attributes to the model of all controllers in Spring 3

Every single view in my Spring 3 app has a set of attributes they can rely on. So the first line …

java spring spring-mvc spring-3
Spring 3 Security: AccessDeniedHandler is not being invoked

I have a spring 3 application with the configurations given below. When any user tries to access a page and he/…

java spring-mvc spring-security spring-3