springboot @repository 不加载
用postgreps数据库时可以正常加载,切换到mysql数据库时就报下面的错误,看报错就时没有注入,但是postgreps时可以
Field insertRepository in XXXX required a bean of type 'XXXXX' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)