Component « MVC Controller « Spring Q&A





1. Component controller in Spring-MVC    stackoverflow.com

I am designing a web application that requires loading multiple components on a single page. (In terms of page layout is similar to Google reader) I like to keep these ...

2. Spring 3 Annotated Configuration Picks up @Configuration and @Component but not @Controller    stackoverflow.com

So I'm trying to configure my web app without XML and go the all annotated route. I have a few classes annotated with @Configuration and @Component that are getting picked up ...

3. If a Controller has a @Controller annotation, shouldn't that be enough for Spring without component scanning?    stackoverflow.com

According to the Spring docs, to enable autodetection of annotated controllers, you add component scanning to your configuration:

<context:component-scan base-package="org.springframework.samples.petclinic.web"/>
My question is, why is this necessary? If a Controller has an ...

4. Spring MVC Component-like Controllers    forum.springsource.org

Spring MVC Component-like Controllers Hi, I'm currently using Spring MVC for my web applications. The problem is that the MVC pattern of Spring is based on pages. Each page has its ...

5. Accessing a Controller created via component-scan    forum.springsource.org

Accessing a Controller created via component-scan I have a class annotated with {at}Controller and it has some dependencies autowired into it. Spring is finding the Controller via component-scan, instantiating my Controller ...

6. How to get all @Controller (or all @Component) classes    forum.springsource.org

Hi! The subject pretty much says it all: How to get all @Controller (or all @Component) classes in Spring 2.5? I need to get a List with the full class names ...