How to Solve Error creating bean with name ‘log’loginController’

Error Description:

An error occurred during the operation of Maven + SSM project:
A org.springframework.beans . factory.UnsatisfiedDependencyException : error creating bean with name ‘logincontroller’: unsatisfied dependency expressed through field ‘imemberfunction’; as shown in the figure:

Cause of error:

(1) Annotation scanning is not enabled;
(2) the package path of annotation scanning is not set.

resolvent:

(1) In spring- mvc.xml In the configuration file


<mvc:annotation-driven />

(2) In spring- mvc.xml In the configuration file


<context:component-scan base-package="com.bigname.demo03.*" />

Read More: