New to Spring Boot here, learning from online resource, have question. Can someone please explain me? I am referring from link https://www.springboottutorial.com/creating-microservices-with-spring-boot-part-2-forex-microservice
.
I am able to create everything as expected and see the results. I understood Restcontroller, and have trouble understanding below lines.
Can someone please explain me how shall I read / understand below code and how to know what's happening? Please note I am not getting any error. I get the response at my local server as expected. This method findByFromAndTo
does not have any implementation in interface which I understand but it does not have any implementation in RestController as well. So how does this work?
public interface ExchangeValueRepository extends
JpaRepository<ExchangeValue, Long> {
ExchangeValue findByFromAndTo(String from, String to);
}