運行springboot項目報錯: *************************** APPLICATION FAILED TO START *************************** Description: Field userMapper in com.whohim.spri ...
運行springboot項目報錯:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field userMapper in com.whohim.springboot.service.impl.UserServiceImpl required a bean of type 'com.whohim.springboot.dao.UserMapper' that could not be found.
Action:
Consider defining a bean of type 'com.whohim.springboot.dao.UserMapper' in your configuration.
Process finished with exit code 0
在項目啟動類加上下麵註解即可(掃描對應的mapper包)