controller调用service、service调用dao 均报空指针问题
@Controller
public class TimeoutController extends AbstractController {
@Autowired
private LaoLuShiTangSkill laoLuShiTangSkill;
接口
public interface LaoLuShiTangSkill {
service实现
import org.springframework.stereotype.Service;
@Service
public class LaoLuShiTangSkillImpl implements LaoLuShiTangSkill {
@Autowired
private UserBehaviorRecordDao userBehaviorDao;
@Autowired
private SkillUseRecordDao skillUseRecordDao;
@Autowired
private LaoLuShiTangContentDao laoLuShiTangContentDao;
mapper
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserBehaviorRecordDao {