How to write JUnit test with Spring Autowire?

前端 未结 6 500
孤城傲影
孤城傲影 2020-12-03 06:45

Here are the files that I use:

component.xml




        
6条回答
  •  青春惊慌失措
    2020-12-03 07:16

    I think somewhere in your codebase are you @Autowiring the concrete class ServiceImpl where you should be autowiring it's interface (presumably MyService).

提交回复
热议问题