This project demonstrates how to use Spring Boot, Apache Camel, RestTemplate and date manipulation methods to process data. Data is processable using folder location and a RESTful end point. The emphasis is put on using Non-SDK techniques to get the number of days between the two given date values. For future development, data could be retrieved/transported async using ActiveMq.
This project reads data in a file of the format:
DD MM YYYY, DD MM YYYY
and process the date out in the following format difference:
DD MM YYYY, DD MM YYYY, difference
See data/in/sample.txt and data/out/sample.txt
mvn clean package
Run command spring-boot:run
- place valid file in data/in
- see result data/out
Run locally and go to http://localhost:8080/datevalidationservice/swagger-ui
- Avanish Bharati