IntelliJ does not detect a custom stereotype (for component scanning)

I have created a new custom stereotype like this:

@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface DomainService {     String value() default ""; }


then I have included a new filter (application context):

    <context:component-scan base-package="a.b.c">         <context:include-filter type="annotation" expression="my.stereotype.DomainService"/>     </context:component-scan>



but IntelliJ does NOT detect any annotated class as Spring Bean.

- IntelliJ IDE 9.0.3
3 comments
Comment actions Permalink

Question:
Is there a way to tell the IntelliJ to detect my new annotation type as custom stereotype for component scanning?

0
Comment actions Permalink

Hi,
Please, annotate your custom  annotation with standardt @Component annotation.

Serega.

0

Please sign in to leave a comment.