Hi Guys
I'm trying to create a custom exception resolver chain as follows:
Code:
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "web.client")
Type: Posts; User: rgladwell; Keyword(s):
Hi Guys
I'm trying to create a custom exception resolver chain as follows:
Code:
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "web.client")
Please ignore the base package, I redacted the rest of it so-as not to display personal information (now fixed above)
As for @Autowired, I already tried that and that didn't work either.
Hi Guys
I'm trying to create a custom exception resolver chain as follows:
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "web.client")
public class WebApplicationConfiguration...
I'm trying to create a secured restful web service using Spring MVC and Spring Security. I'd like to return som JSON message on a 401 instead of the default HTML message returned by Spring.
I've...
Hi Rob,
Thanks for the info, I am aware of the difference and I've got proxy based AOP to work with Spring MVC before, just not with spring-security and never with a "no-xml" spring application....
Hi Rob,
I was specifically trying to avoid compile/load time weaving by using the proxy-target-class="true" directive.
Does this mean I have to use weaving to recompile my classes to get...
I'm not sure that the issue with the application contexts from the FAQ is the problem. I only create one application context for the whole of my application. Please see my WebInitializer instance:
...
Hi Martin
Thanks for the response.
You are incorrect though: I did search, exhaustively for the keywords in the code above but couldn't find a single solution until you responded here.
I'm trying to get my Spring MVC app to play nice with Spring @Secured annotations and ASpectj autoproxying but it doesn't seem to be proxying or recognising my @Secured annotations. I have a...
I've created a project which allow you to inject properties like components into your Spring objects for Spring 2.5.*:
http://code.google.com/p/spring-property-annotations/
For Spring 3 you can...
Would it be possible to write a servlet Filter that calls the handler interceptors for non-dispatcher servlets?
Is it possible to configure Spring MVC to filter all requests through HandlerInterceptors even if they don't go through the DispatcherServlet? In the same way that ServletFilters can filter all...
Hi Marten
Thanks for the tip, that fixed it. Much appreciated.
I'm trying to combine MVC annotations like @Controller with old-style controllers. I have something like the following in my application context for my dispatcher servlet:
<bean...
Thanks so much, that worked a treat! :)
I've written the following Spring JDBC API StoredProcedure sub-class:
class GetLdapPropertiesStoredProcedure extends StoredProcedure {
protected...
I need to access a SOAP web service and I used the JaxWsPortProxyFactoryBean component based on section 17.5.8: "Accessing web services using JAX-WS" of the Spring docs. I use a shared interface for...
Hi jonnio
I'm using Struts2, but I can't see a clear design pattern to explictly inject beans I craete in Struts2 back into my application context.
Is there anyway to access the servlet API in Spring say, for example, to inject an HttpServletRequest reference into session and request scope beans. I need to assemble a bean based on values in the...
Hi,
I'm having problems using my session/request scope beans using Spring 2 with Struts2 and the RequestContextListener. When I attempt to set properties on my request scope beans, nothing seems...
I'm trying to automatically trace the method calls for my Spring configuration but I need some help finding the right config. I'm using the following application context XML fragment, but for some...