spring boot + jpa 本地启动没报错,部署到liunx报找不到错
报错代码
APPLICATION FAILED TO START
***************************
Description:
Field adminUserRepository in com.hmzx.services.hmyuyue.impl.AdminUserServiceImpl required a bean of type 'com.hmzx.six.repository.AdminUserRepository' 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.hmzx.six.repository.AdminUserRepository' in your configuration.
解决方法
配置了多数据源,包路径写错,小写s写成大写s
改过来,成功启动