zoukankan      html  css  js  c++  java
  • 一些比较有用的模板

    一、Action增删改查模板

      

     1     /**
     2      * 增加
     3      * @return
     4      */
     5     public String add(){
     6         
     7         return "tolist";
     8     }
     9     
    10     /**
    11      * 添加界面
    12      * @return
    13      */
    14     public String addUI(){
    15         
    16         return "addUI";
    17     }
    18     /**
    19      * 删除
    20      * @return
    21      */
    22     public String delete(){
    23         return "tolist";
    24     }
    25     /**
    26      * 更新界面
    27      * @return
    28      */
    29     public String updateUI(){
    30         return "addUI";
    31     }
    32     /**
    33      * 更新
    34      * @return
    35      */
    36     public String update(){
    37         return "tolist";
    38     }
    39     /**
    40      * 根据id查找
    41      * @return
    42      */
    43     public String findById(){
    44         return "list";
    45     }
    46     /**
    47      * 根据id数组查找
    48      * @return
    49      */
    50     public String findByIds(){
    51         return "list";
    52     }
    53     /**
    54      * 查找所有
    55      */
    56     public String findAll(){
    57         return "list";
    58     }
    View Code
     1 /** 列表 */
     2 public String list() throws Exception { return "list"; }
     3 
     4 /** 删除 */
     5 public String delete() throws Exception { return "toList"; }
     6 
     7 /** 添加页面 */
     8 public String addUI() throws Exception { return "saveUI"; }
     9 
    10 /** 添加 */
    11 public String add() throws Exception { return "toList"; }
    12 
    13 /** 修改页面 */
    14 public String editUI() throws Exception { return "saveUI"; }
    15 
    16 /** 修改 */
    17 public String edit() throws Exception { return "toList"; }
    View Code
  • 相关阅读:
    python之面向对象编程
    python的模块引用和查找路径
    python的迭代器、生成器、三元运算、列表解析、生成器表达式
    python文件操作
    lesson4-图像分类-小象cv
    lesson3-神经序列模型I-小象
    fast ai环境配置
    YOLO
    lesson2-cnn-fastai
    mask-code-python
  • 原文地址:https://www.cnblogs.com/quchengfeng/p/4156838.html
Copyright © 2011-2022 走看看