一:自定义注解型1:自定义注解类:@Retention(RetentionPolicy.RUNTIME)
public@interfacepointcutTest{
}2:@Aspect
@Component
@Order(0)
publicclasspointcut{
//此处两种写法
//一:
//@Pointcut("@annotation(application.anntation.pointcutTest)")
//publicvoidpointcut..
分类:
Web程序 时间:
2017-10-12 22:55:40
阅读次数:
654
// 根据anntation生成对应的View - (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id<MAAnnotation>)annotation { static int a= 0; if ([anno ...
分类:
移动开发 时间:
2016-06-29 20:34:37
阅读次数:
509
一、JDBC、Connection(连接) 优点:运行高效、快捷。 缺点:代码多、异常多、不支持跨平台。 二、ibatis 1、根据jdbc的基本建立连接。 2、通过anntation+xml、java反射技术,实现与关系数据库的转化。 3、优点:高效、复杂的sql构建,支持与spring的整合,与 ...
分类:
数据库 时间:
2016-04-19 00:27:55
阅读次数:
304
#pragma mark - BMKMapViewDelegate // 根据anntation生成对应的View - (BMKAnnotationView *)mapView:(BMKMapView *)mapView viewForAnnotation:(id <BMKAnnotation>)annotation { ? ? //普通annotation ? ?...
分类:
移动开发 时间:
2015-11-05 12:16:33
阅读次数:
285
1、注解的定义
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 创建时间:2015-7-1 下午2:36:3...
分类:
编程语言 时间:
2015-07-02 15:50:19
阅读次数:
165