Question:
My Spring Boot back-end sends responses to front-end requests like this:data
variable below and display it in my table (I’m using Material btw)?data
variable which only expects an array like this: [{"product1":"Rake"},{"product2":"Hammer"},...]
.Here is my service class:
Answer:
Your service doesn’t returnProductTableItem
but the server response. Create two models:If you have better answer, please add a comment about this, thank you!