Spring @Autowired not working

后端 未结 7 1953
再見小時候
再見小時候 2021-02-08 12:35

I have some problems wth autowire annotation. My app looks like this:

Here is controller:

@Controller
public class MyController {
    @Autowired
    @Qua         


        
7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 13:00

    You can use

      
    

    entry in your configuration .xml file. This entry will scan/read all the stated type and annotations from the java classes.

提交回复
热议问题