异常信息1
2022-01-02 20:03:33,821 ERROR LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 2 of constructor in com.rus.service.impl.MoveServiceImpl required a bean of type 'com.rus.entity.MoveRntity' that could not be found.
Action:
Consider defining a bean of type 'com.rus.entity.MoveRntity' in your configuration.
解决方案
entity中确实无参构造方法
异常信息2
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in \com.rus.service.impl.MoveServiceImpl required a bean of type 'java.lang.String' that could not be found.
Action:
Consider defining a bean of type 'java.lang.String' in your configuration.
解决方案
由于MoveServiceImpl是一个共同的基类
不能添加@service注解