-
2017-03-02 11:16:08
- MyBatis传入参数与parameterType的详解
- Mybatis的Mapper文件中的select、insert、update、delete元素中有一个parameterType属性,用于对应的mapper接口方法接受的参数类型。可以接受的参数类型有基本类型和复杂类型。mapper接口方法一般接受一个参数,可以通过使用@Param注释将多个参数绑定到一个map做为输入参数。简单数据类型mapper接口方法:
-
2409
-
2017-03-02 11:19:15
- MyBatis整体预览(一)
- 题记:最近在工作之余分析了一下MyBatis的源码,促使我阅读源码的原因是为了实现MyBatis在物理上的分页。我们知道,MyBatis是在逻辑上的分页,通过用户的查询,将结果缓存下来,在查看是否传递了RowBounds对象,在查看里面的offset和limit值,通过这两个值,从返回的结果集合中截取位于期间的值。但是这样并不是很好,可以想想,如果假设查询的数据量很大,但是有用的可以是前几条,这未
-
1375
-
2017-03-02 11:22:57
- Hibernate中对象的三种状态及相互转化
- hibernate中的对象有三种状态: 瞬时状态 (Transient),持久状态 (Persistent), 1. 瞬时状态 (Transient)当我们通过Java的new关键字来生成一个实体对象时,这时这个实体对象就处于自由状态,如下: Customer customer=new Customer(“zx”,27,images);这时customer对象就处于
-
1412
-
2017-03-02 11:25:07
- struts2中的参数传递的详细介绍
- 这个问题其实一直很困惑我的,在写平常的jsp程序时,传递参数很容易,通过表单,request,链接等都可以传递,但是到了struts2中,在写的各个地方,都看不到任何的request或是response,不知道该怎么传递参数了,到了今天学习了struts2中的参数传递这一节,终于解开了疑惑,但是还不是很清楚,有待以后探索。在这里说一下,struts2中,Action之间如何传递参数。Act
-
1767
-
2017-03-02 11:29:30
- C# 操作配置文件 App.config的详解
- 原文:http://www.cnblogs.com/253891489/articles/2008669.htmlusing System;using System.Collections.Generic;using System.Text;using System.Configuration;namespace Schwann.CommLibrary{
-
2602
-
2017-03-02 11:33:14
-
2017-03-02 11:34:35
- c# 隐藏已打开的窗口,打开登陆窗口的详细介绍
- FormCollection fc = Application.OpenForms;//获得已打开的窗口//循环隐藏 if (fc != null && fc.Count > 0) { foreach (Form window in fc) {
-
1649
-
2017-03-02 11:39:21
- C# 操作EXCEL 详细代码介绍
- 转自:http://blog.sina.com.cn/s/blog_3eb67d1b0100kga9.htmlEXCEL操作方法private Excel.Application _excelApplicatin = null;_excelApplicatin = new Excel.Application();_excelApplicatin.Visible = tr
-
2157
-
2017-03-02 11:41:33
- C# 操作EXCEL样式 示例 --生成EXCEL审计表
- #region 生成审计表 public static void GenerateAccountGrid(string fileName, string tableName, string companyName, string owner, DateTime endline, string copyMan, AnalysisEnt ent) {
-
1595
-
2017-03-02 11:43:05
- C# EXCEL 导入导出类(OLEDB的方式)的示例代码详情
- public static class ExcelHelper { #region 导入 /// /// 导入EXCEL(默认的sheet) /// /// /// public static System.Data.DataTable I
-
2439