import android.annotation.SuppressLint;import
android.app.Activity;import android.content.Context;import
android.content.Intent;import android.os.Buil...
分类:
移动开发 时间:
2014-05-18 19:43:22
阅读次数:
502
1、通过PPA这种安装方式特点:1、安装的java含jdk、jre和浏览器插件2、自动识别64bit或者32bit3、自动升级为最新版本4、支持 Ubuntu
13.10, 13.04, 12.10, 12.04 and 10.04 或 Linux Mint1.1在终端中执行安装命令:sudo ad...
分类:
数据库 时间:
2014-05-17 20:44:31
阅读次数:
395
1、打开组策略----策略----Windows设置----安全设置----本地策略----用户权限分配----允许通过远程桌面服务登录----添加允许登录的组或者用户名。2、如果你希望domainuser用户登录到域控制器!将domainusers组加入RemoteDesktopUsers组。不赘述。3、如果你希望domainuser用户登..
分类:
其他好文 时间:
2014-05-16 02:04:30
阅读次数:
413
今天刚学习了通过自定义注解+拦截器实现权限控制,自己花了点时间整理,发到网站同网友交流分享。
一、定义一个自定义注解类
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* 自定义注解
* @author grace
*
*/
@Retention(Reten...
分类:
其他好文 时间:
2014-05-15 23:10:58
阅读次数:
448
现在最新的Junit是Junit4,Junit4最大的亮点就是引入了注解(annotation),通过解析注解就可以为测试提供相应的信息,并抛弃Junit3使用命名约束的方式。我们先从Junit3开始对于Junit3,有一下的规定和要求1.测试类必须要继承于TestCase父类,必须已Test开头或...
分类:
其他好文 时间:
2014-05-15 22:12:38
阅读次数:
394
1 package kite.struts2.action; 2 3 4 import
java.awt.Font; 5 6 import javax.annotation.Resource; 7 8 import
kite.domain.Question; 9 impo...
分类:
其他好文 时间:
2014-05-15 15:55:26
阅读次数:
398
#include
#include
using namespace std;
class Teacher
{
public:
Teacher(string nam,int ag,char s,string ad,int num,string t)
{
name=nam;
age=ag;
sex=s;
...
分类:
其他好文 时间:
2014-05-15 04:32:56
阅读次数:
262
所需要的包:
junit需要是4.5以上
org.springframework.test-XXX.RELEASE.jar
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
i...
分类:
编程语言 时间:
2014-05-15 04:21:45
阅读次数:
357
最近把一个用eclipse构建的项目,加上了Gradle脚本,用它来编译。虽然最后编译是显示BUILD SUCCESSFUL,但是在编译过程中,却打印出一大堆栈信息,似乎是在编译我自定义的注解时出现的异常。
打印的栈信息前面部分如下:
:assemble
:lint
Failed converting ECJ parse tree to Lombok for file E:\code\git\...
分类:
其他好文 时间:
2014-05-15 00:00:10
阅读次数:
516
这里只是做简单的记录如何实现。
一、基于配置文件的实现
①编写需要调度的类
package com.study;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
//@Component
public cla...
分类:
编程语言 时间:
2014-05-14 19:21:22
阅读次数:
279