getarrays / employeemanagerapp

127 stars 229 forks source link

Http failure response for http://localhost:8080/employee/delete/6: 500 OK #4

Open cami-la opened 2 years ago

cami-la commented 2 years ago

Hi, Jr. First of all I want to thank you, because your course is very very good. I already said it, but I gonna repeat: I am learn a lot with you. <3

Now, my issue: I am use the Angular 13 and Spring Boot 2.7.0, and I CAN'T DELETE one employee. Do you can help me?

My backend project: https://github.com/cami-la/Spring_Boot_Full_Stack_with_Angular_Full_Course_amigoscode_getarrays My frontend project: https://github.com/cami-la/Spring_Boot_Full_Stack_with_Angular_Full_Course_amigoscode_getarrays2

2022-06-17_15-54

juniorro commented 2 years ago

You can open Dev Tools in the browser and also check the logs in the back-end Java code to see if you can find any clue as to why you're getting this error.

cami-la commented 2 years ago

Hi, Jr. How are you? Sorry for my absence. I was traveling and arrived last week.

So...

2022-07-05_10-45

2022-07-05_10-46

getarrays commented 2 years ago

Try adding import org.springframework.transaction.annotation.Transactional to the implementation class if you don't already have it.

cami-la commented 2 years ago

Try adding import org.springframework.transaction.annotation.Transactional to the implementation class if you don't already have it.

It's work! Thanksss. <3