ReactJS + Spring Boot CRUD Full Stack App - 15 - Connecting React with Add Employee REST API

ReactJS + Spring Boot CRUD Full Stack App - 15 - Connecting React with Add Employee REST API

Java Guides

4 года назад

24,471 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

INICIA AHORA
INICIA AHORA - 12.11.2023 05:11

.....
EmployeeService.createEmployee(employee).then(res=>{
window.location.replace('/employees')
})
.....
return(
<Link to='/employees'>
<button
className='btn btn-success'
onClick={this.saveEmployee}
>
Save
</button>
</Link>
)

Ответить
Boly Sene
Boly Sene - 28.04.2023 20:44

Great Job Sir, I'm using React 18.2.0 but this.propos.history.push() is not working for me. I don't know how to navigate

Ответить
Sinomyr
Sinomyr - 24.04.2023 12:43

Can you provide an updated course for this? using functional component.

Ответить
Spandana Reddy
Spandana Reddy - 02.11.2022 15:07

I can't navigate to all employees page as I'm facing error with this.props.history.push after clicking on save button @JavaGuides

Ответить
himani Patel
himani Patel - 19.03.2021 00:18

hello Ramesh, I am new to React. I am having null data stored in database. please help me with that. where i can look for this types of issue?

Ответить
Kavish Morey
Kavish Morey - 15.03.2021 17:34

Sir first name and last name are getting stored as null values in database but email is working properly please provide some solution

Ответить
curiousEnough
curiousEnough - 19.09.2020 18:10

I can't navigate to all employees page as I'm getting the following error afer clicking on save button -
"Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource"

Ответить
Oren Vaknin
Oren Vaknin - 17.09.2020 11:04

Can I ask something? How does the server knows to post the employee in DB? I did not see that you updated your project in Spring Boot...

Ответить
Shehan Naveendra
Shehan Naveendra - 09.08.2020 20:30

Can you tell me how to show a toast message when the request is successfully completed using axios instead of redirecting to employee table.
thank you!

Ответить
Divya
Divya - 26.07.2020 20:27

it was very useful.thank you sir.

Ответить
Ajay Sarvariya
Ajay Sarvariya - 26.07.2020 18:12

Thank you sir for your extraordinary work.. Sir i gon through some videos and i definitely show all viseo of Spring and react.. Sir can you upload authentication N authorization of user login n register n logout Thank you

Ответить
Devashish Mondal
Devashish Mondal - 26.07.2020 18:02

Great tutorials, can you please do a tut on webclient in spring boot 5 with external api call

Ответить