好奇怪,所有文件在同一個包里可以運行,分開就報錯?
Description:
Field usersRepository in com.example.controller.MyController required a bean of type 'com.example.repository.UsersRepository' that could not be found.
Action:
Consider defining a bean of type 'com.example.repository.UsersRepository' in your configuration.
2017-07-26
怎么解決了
2017-07-08
原來是包導錯了