File polling using the Spring Integration
Whenever you want to read a file from any location , you need to write a lot of code and you need to manage end to end progress of you file. I got an simple way to read file using Spring-Integration where you just need to focus on your business logic , apart from that spring will take care of.
I wanted to read a file from a certain path but I had written a lot of code it was working fine then I got in touch with one of my friend he given suggestion to check File Polling using Spring.
Problems -
Solution -
I developed an simple use case where I'm reading content file from a folder and just reversing the content of file and posting file in another folder.
You can get the working example on below GitHub repo. Let me know if you are facing any issue while running.
#Springboot #java #Coding