The @ Reference annotation attribute in controller when springboot+dubbo writes a unit test is null

problem description

when springboot+dubbo annotations are used in the configuration development of the project, there is no problem with starting the project normally, but when I was writing the unit test, I found that the attribute marked @ Reference was null, which caused a null pointer exception to be called.

related codes

method to be tested:

  https://github.com/konghangha.

Jul.22,2021

clipboard.png


Brother, there are no front-end items in your source code

Menu