Skip to content

Annotation-based filters for component scanning find meta-annotations as well #22551

@kingrockw

Description

@kingrockw
<context:component-scan base-package="cn.rock">
    <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Component"></context:exclude-filter>
</context:component-scan>

Why can't the DispatcherServlet load the @Controller class in Spring MVC config according to the above configuration?

Metadata

Metadata

Assignees

Labels

for: stackoverflowA question that's better suited to stackoverflow.comin: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions