面向接口编程,把Service层定义为接口,然后用另外一个类去实现这个接口,使用spring boot启动时报错
项目结构:
controller层注入如下
@Autowired
private UserServiceImpl userService;
错误详情
Error starting ApplicationContext. To display the auto-configuration report re-run your application with