I have a Spring MVC @Controller in a library project which my main project depends upon. I want to redirect to this from a controller in my main project. How can I do this?
I have a @Configuration in the library with an appropriate @ComponentScan. I tried both putting that @Configuration in my getServletConfigClasses() in my main ApplicationInitializer, and putting it in an @Import tag on my main @Configuration.
When I do a return "redirect:/whateverurl" with either configuration, I just see the redirect string in my browser. It doesn't actually do the redirect.