Mocking @AuthenticationPrincipal return exception no primary or default constructor

前端 未结 0 2018
无人及你
无人及你 2020-12-03 04:31

In my MockMvc Test, I want to mock @AuthenticationPrincipal in spring boot rest controller. As you can see this is one of the example of mocking target.

This one is C

相关标签:
回答
  • 消灭零回复
提交回复
热议问题