启动 Spring 项目报错:Field userRepository in com.example.demo.DemoApplication required a bean of type...
如题,启动 Spring 项目报错:Field userRepository in com.example.demo.DemoApplication required a bean of type com.example.accessingdatamysql.UserRepository' that could not be found.在测试连接 MySQL 数据库的 Spring demo 中