N/APosted on - 06/27/2019
I wanted to work on my command prompt using spring rest controller and my java programs to run using the same. But I don’t know how to use it. Please help me in finding out how can I use the Spring RestController?
Download A File In Spring RestController
For using the spring RestController in your file you have to convert your file into byte array. The HttpEntity class helps to wrap the content and publish it as your response.
Add the same code in the HttpEntity file