1. 报错
Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ServiceImpl’ defined in file [D:\develop\IDEA\IDEAwp\springboot\target\classes\com\ykenan\ykenan\service\ServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.ykenan.ykenan.service.ServiceImpl: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: No visible constructors in class com.ykenan.ykenan.service.ServiceImpl
2. 原因
有参构造函数覆盖了无参构造函数
3. 解决
手动添加无参构造函数