How to print a java variable when I check through Swagger-UI
Solution 1:
There are 2 scenarios :
Running in Local Machine
- If you are running the application locally on spring tool suite and using swagger ui to check the working of APIs, then you can see the console in the spring tool suite where the application is running .
Running on Server Machine
- In this case, you have to see on which server your application is hosted. But ensure that your updated file ( containing the print statement) is present on the server