how to fetch data from database using angular 6 in java