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
请先登录再写评论。
Question:
Is there a way to tell the IntelliJ to detect my new annotation type as custom stereotype for component scanning?
Hi,
Please, annotate your custom annotation with standardt @Component annotation.
Serega.
I've created an issue http://youtrack.jetbrains.net/issue/IDEA-57138