Creating a JPA Repository Step 1: Create an interface with the name ExchangeValueRepository and extends the JpaRepository class. ... Step 2: Open CurrencyExchageController. ... Step 3: Create a query method in the ExcahngeValueRepository. ... ExcahngeValueRepository.java. Step 4: In the CurrencyExchangeController. More items...