Skip to content

Tag: reactjs

react class based component vs classes in java

I’m newish to react and I’ve always thought of a class based component much like I do classes in Java. Is it correct to compare the two thinking of the class based component and class in Java? In other words, are rendered components like objects in Java where they are an instantiation of the class…

How to properly filter Spring REST data

I have a Spring Data REST service with a single @Entity and Repository. When I run $ curl localhost:8080/api I get all the data stored in my repository and it works as expected. I also have a small React front end and I display that data there. My question is: Where should I filter the data? For example maybe…

react + spring boot upload file and form data

i have a case like in my form (front end), i can fill personal data (name, address, DOB) and then i can attach multiple image. In my spring boot controller : My model wrapper : Front end (React) Code : With above example, i always encounter errors. like : java.io.IOException: Stream closed and zero attachment…