摘要:
实体类: 1 public class Account { 2 3 private Integer id; 4 private Integer uid; 5 private Double money; 6 7 private User user; 8 9 public User getUser() 阅读全文
摘要:
Dao层: 1 public interface IUserDao { 2 3 /** 4 * 查询所有结果 5 * @return 6 */ 7 @Select("select * from user") 8 List<User> findAll(); 9 10 /** 11 * 保存用户 12 阅读全文
摘要:
转载:https://blog.csdn.net/tn_java/article/details/53837024 JUnit4使用Java5中的注解(annotation),以下是JUnit4常用的几个annotation: @Before:初始化方法 对于每一个测试方法都要执行一次(注意与Bef 阅读全文