Skip to content
Advertisement

Tag: typescript

Retrieve a list of cart items by passing in a user

A typical shopping cart problem. The CartItem class is being injected with a User class and Product class. I already have a user, and I need to pass in the user to return a list of cart items. But the front end failed to receive it. The browser console returned 400, and Postman returned 405 for the back end. In

Problem sending the type date with Angular

When I add the date to Spring from Angular, Spring save the day before instead the date that I insert. When I tried on postman everything works so the problem is when Angular send the data. My code on Spring model is: in my controller: In my component.html: I really can’t figure out why, thanks a lot who gonna reply

Storing multiple fields of address in entity class

I need to store multiple addresses, like address1 , address2 and zipcode etc. Should I declare all the fields individually? for instance: or is there any better way to declare them in entity class? I have been told creating entity classes is the best practice. Answer If only the addresses are multiple, it seems you have this situation:

Advertisement