Part 45 - Filter Table Data by Keyword by Extending JpaRepository
This is Part 44 of our complete application in Spring Boot (FleetMS version 2). In this part, we would then make a get request to fetch data from the Spring REST API.
The following is covered here:
00:00 - What we want to achieve
02:36 - Setup the form, textbox and button on the HTML template
07:22 - Write the findByKeword method in the Repository using @Query annotation
11:42 - Write the findByKeword method in the Service
12:50 - Write the controller method
16:40 - Test the Application
17:28 - Adjust the Repository method to include all the fields
👉 Filtering Data Using @Query in JpaRepository -
👉 Filter Table data using JavaScript -