Enables scanning for Servlet components (
filters
,
servlets
, and
listeners
). Scanning is only performed when using an
embedded web server.
Typically, one of value
, basePackages
, or basePackageClasses
should be specified to control the packages to be scanned for components. In their
absence, scanning will be performed from the package of the class with the annotation.