Hi Thulasi. If you are deploying angular files and spring boot as a single deployment i.e copy angular files in resources->static folder and deploy on tomcat server, then we do not need the cross origin tag. if the angular and Spring Boot are deployed seperately on different servers you will need to use cross origin tag in spring boot.
JavaInUse Thanks for the response! I wanted to know when both angular and backed Java code are running on different servers and also on different environments like DEV and PROD. How do we configure the CORS annotation?
In the cross origin we specify the ip address of the server on which the angular code is deployed - @CrossOrigin("10.15.8.9")So only these IP address would be allowed.
Thank you. But on "Delete Employee" click I am getting error 403. I assume it's a default security setting somewhere in spring boot. How to disable or surpass that?
Thanks for this tutorial and for your code. It helps a lot in my Angular development. One suggestion for your website, you are creating 2 headers at a time. Please delete one from your website code. ^_^
hey bro it's working pakkka fyn and what i neeed is the same video how can we connect with a db in mysql and dynamically enter values using spring boot
Hi, In employee.component.html file getting error with "Identifier 'name' is not defined. 'string' does not contain such a member " . Can you assist me , how to resolve it
When I tries to write the modifications in the employee.component.ts file, it shows for employees declaration - "Property 'employees' has no initializer and is not definitely assigned in the constructor.ts(2564)" and while taking argument "response" in "handleSuccessfulResponse" method it shows compile time error in the VSCode . employees variable ahows -"(property) EmployeeComponent.employees: Employee[] Property 'employees' has no initializer and is not definitely assigned in the constructor.ts(2564) " and "response" shows - "(parameter) response: any Parameter 'response' implicitly has an 'any' type.ts(7006)" so ng serve not works further. I'm using VSCode version 1.72.2
Best of luck :). Also I am preparing a new series for angular 8 + spring boot ecommerce website. It has some more concepts. It is in development stage..but thought it might be helpful for you - www.javainuse.com/fullstack/ecommerce
hi i have a project with angular 7 and spring boot i finish part of spring boot but i don't have how to work with angular 7 i need some help plss contact me
@@JavaInUse it says: Cannot match any routes. URL Segment: 'employees' Error: Cannot match any routes. URL Segment: 'employees' at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (router.js:2469)
Hi, Very nice Vedio and in superb way you explained. I am new for Angular. Will you plz help from where u get Employee details. There is no any db so from where you get the details of employee..
The condition "u=>u!==employee" giving error as "this condition is always return true since the types 'string' and 'Employee' have no overlap.. Can u please provide solution to this?
Really Helpful.Simple explanation bit by bit.Thanks alot. It is a very good tutorial for beginners.
Welcome :)
Thanks for informative video
This is really very much helpful and much in a short video and help of javainuse. Thank you so much brother.
Thanks you vey much....very very helpful video............Please keep it up...
Welcome Shahank :)
Well explained!
What will be the value passed to CrossOrigin Annotation when the same code is running on a server?
Hi Thulasi. If you are deploying angular files and spring boot as a single deployment i.e copy angular files in resources->static folder and deploy on tomcat server, then we do not need the cross origin tag. if the angular and Spring Boot are deployed seperately on different servers you will need to use cross origin tag in spring boot.
JavaInUse Thanks for the response!
I wanted to know when both angular and backed Java code are running on different servers and also on different environments like DEV and PROD. How do we configure the CORS annotation?
In the cross origin we specify the ip address of the server on which the angular code is deployed - @CrossOrigin("10.15.8.9")So only these IP address would be allowed.
one more doubt where this entered values are getting stored here? and how?
Thank you so much. This is a nice and easy step by step explained video. I follow the step and finally i'm able to run the project successfully.
very good tutorial, simple, clear and work!
Thank you so much for this tutorial Sir!!
Thank you. But on "Delete Employee" click I am getting error 403. I assume it's a default security setting somewhere in spring boot. How to disable or surpass that?
Thanks for this tutorial and for your code. It helps a lot in my Angular development. One suggestion for your website, you are creating 2 headers at a time. Please delete one from your website code. ^_^
hey bro it's working pakkka fyn and what i neeed is the same video how can we connect with a db in mysql and dynamically enter values using spring boot
Thanks for this simplified and thorough explanation.
Hi, In employee.component.html file getting error with "Identifier 'name' is not defined. 'string' does not contain such a member
" . Can you assist me , how to resolve it
When I tries to write the modifications in the employee.component.ts file, it shows for employees declaration - "Property 'employees' has no initializer and is not definitely assigned in the constructor.ts(2564)" and while taking argument "response" in "handleSuccessfulResponse" method it shows compile time error in the VSCode .
employees variable ahows -"(property) EmployeeComponent.employees: Employee[]
Property 'employees' has no initializer and is not definitely assigned in the constructor.ts(2564) "
and "response" shows - "(parameter) response: any
Parameter 'response' implicitly has an 'any' type.ts(7006)"
so ng serve not works further.
I'm using VSCode version 1.72.2
Please reply
Thank you so much! I hope I get the job because of you. 🤞
Best of luck :). Also I am preparing a new series for angular 8 + spring boot ecommerce website. It has some more concepts. It is in development stage..but thought it might be helpful for you - www.javainuse.com/fullstack/ecommerce
hi i have a project with angular 7 and spring boot i finish part of spring boot but i don't have how to work with angular 7 i need some help plss contact me
When I go to /employees it keeps redirecting me to / and no message "employee works!" is ever shown, any ideas?
open the chrome developer tool and in the console check if you get any exception when you go to /employees
@@JavaInUse it says:
Cannot match any routes. URL Segment: 'employees'
Error: Cannot match any routes. URL Segment: 'employees'
at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (router.js:2469)
Also, it happens that the Angular welcome page shows and "employee works!" also shows, below the welcome message
In the app-routing-module.ts did you specify following{ path:'employees', component: EmployeeComponent},
@@JavaInUse I did, but it keeps overlaping "employee works!" with welcome page
Hi, why do we need a hasCode method in Employee.java?
I have added equals method, as in the next tutorial for performing CRUD operations they are required. You can remove the hashcode method.
@@JavaInUse okay, thanks
Thanks a lot, easy to follow, love that there are also articles attached.
Subbed&Liked
Great video as always 👍👍👍
Thanks Siyed. As usual glad to help :)
Hi,
Very nice Vedio and in superb way you explained. I am new for Angular. Will you plz help from where u get Employee details. There is no any db so from where you get the details of employee..
Nice explanation ........... one thing i noticed that you you are not using spring boot initializer .... why ?
No Specific reason. May be I don't want to confuse beginners :)
Thanks for sharing the tutorial.I have error .In chrome Browser localhost:8080/employees shows site cannot be reached.How to solve this error
Hi Yaaseen. Very difficult to tell the issue with details you have shared.
thanks for a quick tutorial
welcome :)
The condition "u=>u!==employee" giving error as "this condition is always return true since the types 'string' and 'Employee' have no overlap.. Can u please provide solution to this?
In employee.component.ts file
@@payalkosbatwar3498 You need to change the employees array type from string to Employee. Look into "www.javainuse.com/spring/ang7-crud"
HttpClientModule is not quick fixing
Great job!
nice...make a video for login with angular,spring boot and mysql, in a simple steps
Hi Mishal. You can have a look at www.javainuse.com/spring/ang7-jwt
thank you this help me a lot in my project
Thank you :)
nice, tutorial. Thank you