Solve the BUG: After modifying the mapper, start an error: Error creating bean with name 'dataSourceController': Unsatisfied...

BUG:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
2021-03-22 15:32:47.486 ERROR 14072 — [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceController’: Unsatisfied dependency expressed through field ‘dataManager’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataManager’: Unsatisfied dependency expressed through …
insert image description here

Solution: I just modified the mapper, and some places are wrong, so check it carefully.

The mapper in the error message is not necessarily the mapper with the actual error.
An error will be reported at startup, and the mapper may have problems with parameterType, resultType, etc. For example, the resultMap is written as resultType; or the class referenced in the mapper is inconsistent with the java file; or the execution id of the mapper is inconsistent with the java class of the mapper, etc.

Guess you like

Origin blog.csdn.net/weixin_45752941/article/details/115081251