需要导入的jar包: 实体类User: package com.bjsxt.pojo; import java.io.Serializable; public class User implements Serializable{ private int id; private String username; private String password; public int getId() { return id; } public void setId(int id) { this.i…
转自:http://www.kyjszj.com/htzq/79.html 1. if 语句 (简单的条件判断) 2. choose (when,otherwize) ,相当于java 语言中的 switch ,与 jstl 中的choose 很类似. 3. trim (对包含的内容加上 prefix,或者 suffix 等,前缀,后缀) 4. where (主要是用来简化sql语句中where条件判断的,能智能的处理 and or ,不必担心多余导致语法错误) 5. set (主要用于更新时)…