摘要:hibernate 和 ibatis 区别hibernate:1、hibernate 数据库无关性好。2、hibernate 自动生成sql语句。3、缓存技术4、有代码嵌套在Java代码中5、update 语句 需要先查询 在修改 ,执行效率上有劣势6、不易于学习(相对于 ibatis)ibatis:1、数据库相关性强。2、手写SQL代码。3、没有缓存4、如果数据库设计有变化,不易于迁移5、都是配置文件写SQL 语句6、很快上手(相对于 hibernate)
        
阅读全文
 
            
         
        
            
            
摘要:publicstaticvoidDownLoadFile(String filePath, String fileName,HttpServletResponse response)throwsException {System.out.println("filepath:"+ filePath);File file =newFile(filePath);if(!file.exists()) {System.out.println("文件不存在");}else{FileInputStream fis =newFileInputStream(file);B
        
阅读全文
 
            
         
        
            
            
摘要:EditSource 显示HTML源代码StrikeThrough 删除线Save 保存NewPage 新建空白页面Superscrīpt 上标Subscrīpt 下标Preview 预览JustifyLeft 左对齐Cut 剪切Copy 复制Paste 粘贴JustifyCenter 居中对齐JustifyRight 右对齐JustifyFull 两端对齐PasteText 纯文本粘贴InsertOrderedList 自动编号PasteWord 来自Word的粘贴InsertUnorderedList 项目符号Print 打印Outdent 减少缩进SpellCheck 拼写检查Inden
        
阅读全文
 
            
         
        
            
            
摘要:freemarker 内置函数一、Sequence的内置函数1. sequence?first 返回sequence的第一个值。2. sequence?last 返回sequence的最后一个值。3. sequence?reverse 将sequence的现有顺序反转,即倒序排序4. sequence?size 返回sequence的大小5. sequence?sort 将sequence中的对象转化为字符串后顺序排序6. sequence?sort_by(value) 按sequence中对象的属性value进行排序二、Hash的内置函数1.hash?keys 返回hash里的所有key,返
        
阅读全文
 
            
         
        
            
            
摘要:http://java.sun.com/jsp/jstl/functions本人经常使用总结的JSP中JSTL的FN标签源代码效果说明${fn:contains("aabb","bb") }true如果参数 aabb 中包含参数 bb,返回true${fn:containsIgnoreCase("aabB","bB") }true如果参数 aabB 中包含参数 bB(忽略大小写),返回true${fn:endsWith("abb","bb") }true如果参数 string
        
阅读全文