码迷,mamicode.com
首页 >  
搜索关键字:annotations    ( 528个结果
一个简单的MVC框架的实现-基于注解的实现
1、@Action注解声明 package com.togogo.webtoservice.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import jav
分类:Web程序   时间:2016-02-25 13:34:40    阅读次数:204
TestNG中的注解(Annotations)
TestNG中的注解极大的方便了测试用例与测试方法的组织。考虑到平时使用的特别多,所以从官方文档中转载过来,并且考虑到逐步的翻译,以备不时之需。 @BeforeSuite@AfterSuite@BeforeTest@AfterTest@BeforeGroups@AfterGroups@BeforeC
分类:其他好文   时间:2016-02-18 18:02:56    阅读次数:181
Android Support Annotations :安卓注解快速上手
我们都知道,安卓资源文件都是int类型的ID来保存其引用,通过注解类型,可以让我们在写代码的时候,及时发现参数类型的错误,避免潜在的BUG,如下:我们通过@LayoutRes指定了参数必须要是R.layout.xxx格式的数据,传数字IDE就会提示我们错误通过gradle,把注解类型引入到项目中co...
分类:移动开发   时间:2016-01-23 00:41:59    阅读次数:277
使用Data Annotations进行手动数据验证
Data Annotations是在Asp.Net中用于表单验证的它通过Attribute直接标记字段的有效性,简单且直观。在非Asp.Net程序中(如控制台程序),我们也可以使用Data Annotations进行手动数据验证的,一个简单的例子如下(需要添加System.ComponentMode...
分类:其他好文   时间:2016-01-16 01:26:42    阅读次数:239
Spring组件扫描<context:component-scan/>使用详解
1.如果不想在xml文件中配置bean,我们可以给我们的类加上spring组件注解,只需再配置下spring的扫描器就可以实现bean的自动载入。Spring 2.5引入了更多典型化注解(stereotype annotations): @Component、@Service和 @Co...
分类:编程语言   时间:2016-01-15 20:21:07    阅读次数:535
Hibernate学习之旅
Hibernate搭建步骤:1、下载所需包:antlr-2.7.7.jar,dom4j-1.6.1.jar,hibernate-commons-annotations-4.0.2.Final.jar,hibernate-core-4.2.21.Final.jar,hibernate-jpa-2.0-api-1.0.1.Final.jar,javassist-3.18.1-GA.jar,jboss-logging-3.1.0.GA.jar,jboss-transaction-api_1...
分类:Web程序   时间:2016-01-15 13:05:23    阅读次数:193
JAX-RS annotations
@Path("resource_path"):The @Path annotation defines the path to the base URL or resource_path. The base URL is based on the application's name, the se...
分类:其他好文   时间:2016-01-09 20:10:41    阅读次数:106
Spring组件扫描<context:component-scan/>使用详解
1.如果不想在xml文件中配置bean,我们可以给我们的类加上spring组件注解,只需再配置下spring的扫描器就可以实现bean的自动载入。2.下面是引用spring framework开发手册中的一段话“Spring 2.5引入了更多典型化注解(stereotype annotations)...
分类:编程语言   时间:2016-01-07 14:49:49    阅读次数:225
高德地图作业二
在该方法中- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath,添加如下代码,即可简单实现不重复添加和移动到中心: /* 遍历_annotations数组,如果有同名字符串....
分类:其他好文   时间:2016-01-02 14:15:26    阅读次数:155
selenium WebDriver:使用TestNG、POI和Excel文件进行数据驱动
package cn.gloryroad;import org.testng.annotations.Test;import org.testng.annotations.BeforeMethod;import org.testng.annotations.AfterMethod;import or...
分类:Web程序   时间:2015-12-20 19:22:30    阅读次数:149
528条   上一页 1 ... 34 35 36 37 38 ... 53 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!