报错Repository里找不到bean怎么回事啊?
报错信息:
Description:
Field girlRepository in cn.controller.GirlController required a bean of type 'cn.controller.GirlRepository' that could not be found.
Action:
Consider defining a bean of type 'cn.controller.GirlRepository' in your configuration.
网上搜了各种,但是我实体类加上@Entity了,启动类也加了@EntityScan,真不知道为什么