2017年1月3日

spring bean的生命周期

摘要: package com.huawei.entity; import org.springframework.beans.BeansException;import org.springframework.beans.factory.BeanFactory;import org.springframe 阅读全文

posted @ 2017-01-03 17:40 老邱2 阅读(103) 评论(0) 推荐(0) 编辑

spring bean的初始化

摘要: scope:作用域 singleton prototype request session 默认为singleton lazy-init:default=false ,false ,true 默认为default false:不延迟初始化 lazy-init结合scope=singleton使用 s 阅读全文

posted @ 2017-01-03 17:24 老邱2 阅读(174) 评论(0) 推荐(0) 编辑

全选全不选反选

摘要: <!DOCTYPE html><html><head><meta charset="UTF-8"><title>Insert title here</title><script type="text/javascript" src="js/jquery.min.js"> </script></hea 阅读全文

posted @ 2017-01-03 12:17 老邱2 阅读(145) 评论(0) 推荐(0) 编辑

jquery使用技巧

摘要: 1. 禁用右键点击(Disable right-click) 2.新窗口打开 阅读全文

posted @ 2017-01-03 12:16 老邱2 阅读(110) 评论(0) 推荐(0) 编辑

依赖倒置原则

摘要: package com.huawei.entity;/** * 如果一个类与其他一个类耦合性非常高,我了降低耦合性 * 将其他的类设为接口,其他类都实现接口, * 这样这个类和其他类的耦合性降低 * @author Administrator * */public class Dependence 阅读全文

posted @ 2017-01-03 10:02 老邱2 阅读(117) 评论(0) 推荐(0) 编辑

java程序设计单一原则

摘要: 在我的程序设计中一般一个类就负责一个职责 ex: class Animal{ public void brether(String animal){ System.out.println(animal+"呼吸空气"); } } class Test{ public static void main( 阅读全文

posted @ 2017-01-03 09:06 老邱2 阅读(371) 评论(0) 推荐(0) 编辑

java获取中问名字的首字母

摘要: 1 public class FirstLetterUtil { 2 private static int BEGIN = 45217; 3 private static int END = 63486; 4 // 按照声母表示,这个表是在GB2312中的出现的第一个汉字,也就是说“啊”是代表首字母a的第一个汉字。 ... 阅读全文

posted @ 2017-01-03 07:22 老邱2 阅读(1804) 评论(0) 推荐(0) 编辑

java多态

摘要: 分为静态多态,动态多态 静态多态在一个类,方法名相同参数不同, ex: public void f1(int a){} public void f1(){} 动态多态: ex: class A{ public Object f1(){} } class B extends A{ public Str 阅读全文

posted @ 2017-01-03 06:58 老邱2 阅读(106) 评论(0) 推荐(0) 编辑

包装类型

摘要: 包装类型除了double 、float他们的范围在127与-128之间都可以在常量池中取值 Integer a=12; Integer b=12; System.out.println(a==b) true; int a=128; int b=128; System.out.println(a==b 阅读全文

posted @ 2017-01-03 06:10 老邱2 阅读(117) 评论(0) 推荐(0) 编辑

导航