Description:
Field menuDao in com.mzl.controller.MenuController required a bean of type 'com.mzl.dao.MenuDao' 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.mzl.dao.MenuDao' in your configuration.
解决办法:加上
@MapperScan("dao层包位置") //dao层和mapper是对等的,只不过mapper和service层使用。错误信息在谷歌搜索,在国外论坛里很多能找到答案。