提交 aa80f27b 编写于 作者: 爱吃血肠's avatar 爱吃血肠

优化代码 增加必要注释

上级 3534925c
package com.yingjun.ssm.dao;
import com.yingjun.ssm.entity.User;
import java.util.List;
/**
* @author liyunfeng
* 普通用户
*/
public interface UserDao {
/**
* 获得TUser数据的总行数
......
package com.yingjun.ssm.entity;
/**
* @author liyunfeng
* 普通用户
*/
public class User {
private Long id;//主键id
private String password;//密码
private String name;//姓名
private String email;//手机号码
/**
* 主键id
*/
private Long id;
/**
* 密码
*/
private String password;
/**
* 姓名
*/
private String name;
/**
* 电子邮箱
*/
private String email;
public User() {
super();
}
......@@ -46,4 +62,13 @@ public class User {
this.email = email;
}
@Override
public String toString() {
return "User{" +
"id=" + id +
", password='" + password + '\'' +
", name='" + name + '\'' +
", email='" + email + '\'' +
'}';
}
}
package com.yingjun.ssm.service;
import java.util.List;
import com.yingjun.ssm.entity.User;
/**
* @author liyunfeng
* 增加必要注释
*/
public interface UserService {
/**
* 获得TUser数据的总行数
......
......@@ -5,6 +5,11 @@ import com.yingjun.ssm.entity.User;
import com.yingjun.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author liyunfeng
* 普通用户
*/
@Service
public class UserServiceImpl implements UserService {
@Autowired
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册