摘要: 第一步:pom文件 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.ap 阅读全文
posted @ 2018-03-05 17:35 李俊lj 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 第一步:pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven. 阅读全文
posted @ 2018-03-05 17:35 李俊lj 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 阅读全文
posted @ 2018-03-02 08:30 李俊lj 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 3 4 5 6 7 8 package net.xsoftlab.baike; public class TestReflect { public static void main(String[] args) throws Exception { TestReflect testReflect = 阅读全文
posted @ 2018-02-28 12:32 李俊lj 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 集合扩容的时机是Add(); 集合底层是通过两个数组相互copy实现的。 扩容的本质就是将新数组长度扩容成旧数组长度的2倍,其实上就是调度Array.Copy(oldArray,0,destArray,0,length)。 当Add()触发后就调用了 阅读全文
posted @ 2018-02-28 12:31 李俊lj 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 单列集合 List<t>list=new List<t>(); 双列集合 不能用for循环遍历,因为双列集合没有下标索引值 Dictionary<string,Student> dic=new Dictionary<string,Student>(); dic.add("张三",stu1); dic 阅读全文
posted @ 2018-02-28 12:31 李俊lj 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.类图 可以自动生成代码 ////// Generated by StarUML(tm) C# Add-In//// @ Project : UML// @ File Name : Student.cs// @ Date : 2017/6/15// @ Author : //// public c 阅读全文
posted @ 2018-02-28 12:31 李俊lj 阅读(127) 评论(0) 推荐(0) 编辑
摘要: AOP的一些概念 我们从定义一些核心的AOP概念开始。这些名词并不是Spring.NET专有的。不幸的是,AOP的术语并不一看上去那么浅显易懂。然而如果Spring.NET使用自己的名词会更加让人困惑。 切面(aspect):一个关注点的模块化,这个关注点在执行时候可能横切多个实体对象。在企业级应用 阅读全文
posted @ 2018-02-28 12:30 李俊lj 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Spring 依赖注入的 几种方式 IOC: 控制反转,我觉得很大意义上 是基于类的管理的DI: 依赖注入,可以是在一个类中注入另一个类,也可以是在一个类中注入另一些 基本数据类型数据(整型等),当然也可以是字符串 先来看依赖于xml 中配置 bean 的 注入方式:一: set get 注入 (也 阅读全文
posted @ 2018-02-28 12:30 李俊lj 阅读(324) 评论(0) 推荐(0) 编辑
摘要: public class BaseDao { //数据库驱动字符串 private String driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"; //链接url字符串 private String url="jdbc:sqlserver: 阅读全文
posted @ 2018-02-28 12:30 李俊lj 阅读(125) 评论(0) 推荐(0) 编辑