Consider defining a bean of type ‘com.hang.cloudex.dao.MoneyDao’ in your configuration.
APPLICATION FAILED TO START
***************************
Description:
Field moneyDao in com.hang.cloudex.service.impl.MoneyServiceImpl required a bean of type 'com.hang.cloudex.dao.MoneyDao' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.hang.cloudex.dao.MoneyDao' in your configuration.
当出现这个bug是,请加在启动类上加注解
@MapperScan("com.hang.cloudex.dao")
完美解决。。
这个是由于找不到dao层