The Appotation Configuration Web Apps Contact is configured to run me a web application. But I'd like to add some custom logic provided by annotation.
The programmatic equivalent piece of code is for:
& lt; Reference: component-scan base-package = "org.aaa" & gt; & Lt; Reference: Include-filter type = "annotation" expression = "com.annotation.fooish" /> & Lt; / Reference: Component Scan & gt; Thanks
I used to use annotations instead Has changed my application programmatic scanning.
@ComponentScan (basePackages = {"xxx", "yyy"}, useDefaultFilters = true, includeFilters = {@ ComponentScan.Filter (value com.annotation.Fooish.class)})
No comments:
Post a Comment