package com.synyi.edc.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.synyi.edc.dao.IUserDao; import com.synyi.edc.pojo.User; import com.synyi.edc.service.IUserService; @Service("userService") public class UserServiceImpl implements IUserService { @Resource private IUserDao userDao; @Override public User getUserById(int userId) { // TODO Auto-generated method stub return this.userDao.selectByPrimaryKey(userId); } }