Springboot startup exception: error creating bean with name ‘permissioncontroller’

Springboot + springdatajpa startup exception: org.springframework.beans . factory.UnsatisfiedDependencyException : Error creating bean with name ‘permissionController’

Error reason: the interface name of springdatajpa does not match the corresponding field in the database

Modify the PID field in the database table to parent_ After the ID field, the findbytypeandpid() method name in permissiondao was forgotten to modify, resulting in Hibernate unable to automatically obtain the corresponding field in the database. Change findbytypeandpid() to findbytypeandparentid().


Read More: