摘要: 面向 “Aop” (切面)编程 配置applicationContext.xml 1.三种注入方式 //创建存储数据的类 public class happyServlet { private String info; public happyServlet() { } public happySe 阅读全文
posted @ 2017-10-09 22:29 小嘎嘎 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 2.1 方法一:ExecuteScalar 2.2 方法二:ExecuteNonQuery 2.3 方法三:ExecuteReader 1.了解 1.1 sqlCommand:对 SQL Server 数据库执行的一个 Transact-SQL 语句或存储过程。连接 .NETt和SQL Server 阅读全文
posted @ 2017-07-12 17:29 小嘎嘎 阅读(1954) 评论(0) 推荐(0) 编辑
摘要: 一 , 读取 1.创建文件流 FileStream fs=new FileStream( " 路径 " , FileMode.Open ); 2.创建读取器 StreamReader sr=new StreamReader( fs , Encoding.Default ); 3.执行读取操作 str 阅读全文
posted @ 2017-07-01 10:02 小嘎嘎 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 01 . 常用数据类型 常用数据 java C# 整数 int int 浮点型 float float 双精度型 double double 值类型 字符串 String string 字符串 boolean bool 枚举类型 enum enum 栈 stack 引用类型 堆 heap 结构 st 阅读全文
posted @ 2017-06-13 16:46 小嘎嘎 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1. 实现对象数组信息初始化 ; 2. 控件传值 ; 3. 信息传递 ; 4. 窗体隐藏 ; 01 初始化用户信息 public LoginInfo[]array; //创建公共数组 array=new LoginInfo[10]; LogInfo info1=new LogInfo(); info 阅读全文
posted @ 2017-06-13 16:23 小嘎嘎 阅读(151) 评论(0) 推荐(0) 编辑