Skip to content

Tag: spring

Spring 3.1 HandlerInterceptor Not being called

I followed the documentation for HandlerInterceptors. Noting that in the new version of Spring: “the configured interceptor will apply to all requests handled with annotated controller methods”. The following is in an xml configuration file: I have an annotated controller beginning like this: When…

Spring value injection in mockito

I’m trying to write test class for the following method I’m using the injected url value in one of the methods in the class. To test this i’ve written a junit class In applicationContext-test.xml I’m loading the property file using But the url value is not getting loaded in the CustomS…