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
Tag: angular
CORS error with Angular call to Java service
I have an Angular application that makes a call to a Spring Boot Java service in a separate container. This gateway service calls two other services (one Java and one Python) as needed. Everything works fine running four Docker containers locally. When I run this in AWS ECS, I get the following two errors in my browser: Cross-Origin Request Blocked:
How to dowload a file (blob) which is Int8Array in Angular
I am trying to download a file in Angular. The file is saved in db as varbinary. Java REST service fetched it as byte[]. I am having it as Int8Array in Angular. However when I download it I beleive it is base64 encoded This is how it is in MSSQL: 0x323032312D30392D323720303 … And this is how it is when I
Deploy WAR to Tomcat (Spring Boot + Angular)
I am trying to deploy the Spring Boot Application with WAR packaging to Tomcat 10. The application gets deployed successfully, however, when I try to access the endpoints it results in 404 Not Found. …
How to deserialize from Number value to int (error – no int/Int-argument constructor/factory method to deserialize from Number value)
I have two classes Flight and Ticket. One flight can has lots of tickets, so Ticket has foreign key flight_id. Here is my database with tables flight and ticket. Here is my json request (from Mozilla debugger), which I want to save in the database. You can see flight_id parameter, but I can’t save it to my database, I’ve got