1.实现前置增强 必须实现接口MethodBeforeAdvice接口 创建对应的文件 public interface Animal {//主业务接口 void eat(); //目标方法 void sleep(); } public class Dog implements Animal {// ...
分类:
编程语言 时间:
2017-06-30 09:47:53
阅读次数:
198
1.创建对应的数据库 2.在MyEclipse中创建项目 引入需要的jar包 3.创建数据访问层 public interface StudentDao { //新增学生 int addStudent(Student student); //删除学生 int delStudent(Student s ...
分类:
数据库 时间:
2017-06-30 09:39:40
阅读次数:
242
接口是常量值和方法定义的集合。接口是一种特殊的抽象类。 Java类是单继承的。classB Extends classA java接口可以多继承。Interface3 Extends Interface0, Interface1, interface…… 不允许类多重继承的主要原因是,如果A同时继承 ...
分类:
其他好文 时间:
2017-06-29 23:46:07
阅读次数:
410
匿名内部类也就是没有名字的内部类 正因为没有名字,所以匿名内部类只能使用一次,它通常用来简化代码编写 但使用匿名内部类还有个前提条件:必须继承一个父类或实现一个接口 实例1:不使用匿名内部类来实现抽象方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 abstract ...
分类:
其他好文 时间:
2017-06-29 22:18:55
阅读次数:
150
一、mybatis和hibernate的区别和应用场景hibernate:是一个标准的ORM框架(对象关系映射)。入门门槛较高的,不需要写sql,sql语句自动生成了。对sql语句进行优化、修改比较困难的。应用场景:使用与需求变化不多的中小型项目,比如:后台管理系统,erp、orm、oamybati ...
分类:
移动开发 时间:
2017-06-29 22:14:08
阅读次数:
301
JDBC (Java DB Connection) Java数据库连接 JDBC是一种可用于运行SQL语句的JAVA API(ApplicationProgramming Interface应用程序设计接口)。它由一些Java语言编写的类和界面组成。 JDBC为数据库应用开发者和数据库前台工具开发者 ...
分类:
数据库 时间:
2017-06-29 19:28:42
阅读次数:
281
JuniperSSG20ConfigDHCPServer1.登入Juniper防火墙,浏览至下图所示位置;查看Interface,一般选择为内网提供DHCP服务,然后点击Edit,进入编辑配置界面;2.如下图,是配置界面;首先选择DHCPServer,然后填入相关信息,Lease是租期,Gateway是网关,Netmask是子网掩码,DNS#1..
分类:
其他好文 时间:
2017-06-29 17:37:19
阅读次数:
155
/* //协议说明,2017年6月29日14:19:18,suozhang PPP interface for lwIP Author: Sylvain Rochet Table of Contents: 1 - Supported PPP protocols and features 2 - Ra... ...
分类:
其他好文 时间:
2017-06-29 15:20:01
阅读次数:
614
执行时机制:比較高级的特性,纯C语言 实际上我们平时写的OC代码。都是转成C语言的执行时代码,执行时代码的效率更高,更直接 Person.h @interface Person : NSObject @property(nonatomic,assign)int age; @end main.m in ...
分类:
其他好文 时间:
2017-06-29 14:29:40
阅读次数:
170
文章只要你有一点点基础应该就可以看的懂,文章只为学习交流 #import "ViewController.h" @interface ViewController () @property (nonatomic,retain)UIImageView *imageView; @property (no ...
分类:
移动开发 时间:
2017-06-29 11:21:04
阅读次数:
244