spring自定義註解失效的原因

自定義註解如何寫,這個百度就很多了,這裏就不重複了。這裏重點說一下爲什麼有時候自定義註解不起作用,失效的原因,以及解決辦法。 一、自定義註解失效的例子 @Component public class Run1 implements CommandLineRunner { @Autowired Run1 run; @Autowired TestRecord test
相關文章
相關標籤/搜索