Java annotation scanning with spring

后端 未结 4 1469
Happy的楠姐
Happy的楠姐 2021-01-07 04:37

I have few classes that I need to annotate with a name so I defined my annotation as

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @i         


        
4条回答
  •  悲哀的现实
    2021-01-07 05:03

    Maybe you can use http://scannotation.sourceforge.net/ framework to achive that.

    Hope it helps.

提交回复
热议问题