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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44805-59b0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44805-59b0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?