首页>代码>spring+spring mvc+mybatis整合实现用户登录注册功能(idea用maven搭建)>/ssm-02/src/main/java/neusoft/service/impl/UserServiceImpl.java
package neusoft.service.impl; import neusoft.mapper.UserMapper; import neusoft.pojo.User; import neusoft.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class UserServiceImpl implements UserService { @Autowired private UserMapper userMapper; @Override public User getById(Integer id) { return userMapper.getById(id); } @Override public User login(String name, String password) { return userMapper.login(name, password); } @Override public User getByName(String name) { return userMapper.getByName(name); } @Override public boolean insert(User bean) { return userMapper.insert(bean); } @Override public boolean update(User bean) { return userMapper.update(bean); } @Override public List<User> getList() { return userMapper.getList(); } }
最近下载更多
Sul_ALL LV1
3月20日
微信网友_6802079662936064 LV3
2023年12月31日
微信网友_6738347199975424
2023年11月16日
暂无贡献等级
微信网友_6722962072784896 LV1
2023年11月5日
logitch LV1
2023年10月10日
1289755 LV3
2023年7月30日
ljkljk332 LV1
2023年6月29日
微信网友_6536139133505536 LV1
2023年6月26日
saury7 LV1
2023年6月19日
微信网友_6522850944520192 LV1
2023年6月17日
最近浏览更多
Sul_ALL LV1
3月16日
songsmm LV1
3月11日
微信网友_6802079662936064 LV3
2023年12月31日
1QAZWSX
2023年12月28日
暂无贡献等级
wwwww816 LV3
2023年12月19日
yexinggg
2023年12月15日
暂无贡献等级
hamberduan LV1
2023年12月10日
微信网友_6753981327003648
2023年11月27日
暂无贡献等级
微信网友_6738347199975424
2023年11月16日
暂无贡献等级
感觉啊安排
2023年11月5日
暂无贡献等级