Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException

We Are Going To Discuss About Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException. So lets Start this Java Article.

Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException

  1. Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException

    The Id of Doctor is doctorId, so
    Doctor findById(... void deleteById(...
    should be
    Doctor findByDoctorId(... void deleteByDoctorId(...

  2. Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException

    The Id of Doctor is doctorId, so
    Doctor findById(... void deleteById(...
    should be
    Doctor findByDoctorId(... void deleteByDoctorId(...

Solution 1

The Id of Doctor is doctorId, so

 Doctor findById(...
 void deleteById(...

should be

Doctor findByDoctorId(...
void deleteByDoctorId(...

or change doctorId to simply id, with getter and setter.

Original Author Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment