How does SringBoot get the return value of controller?

1. This is my main class

2.controller

3. I want to get the return value of the interface and print the log. How can I achieve this?

Mar.22,2021
Menu