开发过程中项目启动报错:
错误消息
Description:
Parameter 2 of method page in com.iTouch.ysyjfda.spDishSampleCheck.controller.SpDishSampleCheckController required a bean of type 'com.iTouch.iTouch_basics.commons.domain.Page' that could not be found.
Action:
Consider defining a bean of type 'com.iTouch.iTouch_basics.commons.domain.Page' in your configuration.
这个Page明明能被spring扫描到, 怎么会报这个错误呢?
最后发现
controller里面有一个空的@Autowired(就是@Autowired下面没有注入对象)才会出现这个问题
记录一下