1.安装activiti插件
(1)在线下载
点击Add输入Location:http://activiti.org/designer/update/
Name:Activiti
(2)本地安装
将解压后的插件包放到eclipse下的dropins下面,重启即可
2.快捷键
提示所有快捷键的快捷键:Ctrl+Shift+L
复制当前行到下一行(复制增加):Ctrl+Alt+↓
复制当前行到上一行(复制增加):Ctrl+Alt+↑
3.注释模板配置
(1)方法模板配置
/**
* @Title: ${file_name}
* @Description: ${todo}
* @author czc
* @date ${date} ${time}
* @version V1.0
*/
(2)类模板配置
/**
* @ClassName: ${type_name}
* @Description: ${todo}(这里用一句话描述这个类的作用)
* @author ${user}
* @date ${date} ${time}
*/
(3)简单方法模板
4.Servlet模板
package ${enclosing_package}; import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; /**
* @ClassName: ${type_name}
* @Description: ${todo}(这里用一句话描述这个类的作用)
* @author ${user}
* @date ${date} ${time}
*/ public class ${primary_type_name} extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=UTF-8");
} protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
} }