The Future

Stay hungry,stay foolish.


  • 首页

  • 归档125

  • 分类15

  • 标签63

  • 干货

  • 关于

  • 搜索

Annotations

发表于 2017-08-05 | 更新于 2018-08-15 | 分类于 译文 | 评论数: | 阅读次数:

原文:

You\’ve probably encountered the need to annotate elements of your Java applications by associating metadata (data that describes other data) with them. java has always provided an ad hoc annotation mechanism via the transient reserved word, which lets you annotate fields that are to be excluded during serialization. But it didn\’t offer a standard way to annotate program elements until Java 5.
Java 5\’s general annotation mechanism consists of four components:
1.An @interface mechanism for declaring annotation types.
2.Meta-annotation types, which you can use to identify the application elements to which an annotation type applies; to identify the lifetime of an annotation (an instance of an annotation type); and more.
3.Support for annotation processing via an extension to the Java Reflection API, which you can use to discover a program\’s runtime annotations, and the introduction of a generalized tool for processing annotations.
4.Standard annotation types.
I\’ll explain how to use these components and point out some of the challenges of annotations in the examples that follow.

阅读全文 »

IE8开发工具“无法附加进程”

发表于 2017-08-05 | 更新于 2018-08-15 | 分类于 前端 | 评论数: | 阅读次数:

问题描述

使用IE8开发工具调试时,遇到“无法附加进程,进程可能附加了另一个调试程序”的解决方案
本人在遇到此问题时,百度网上的解决方案一般都是重置IE8设置(工具->Internet选项->高级->重置),卸载重装IE8,或者选择别的浏览器进行调试,但是本人的情况是,项目在其他浏览器均可以正常显示,只有IE8以下版本不可以,后面发现是js兼容性问题。我的想法是,通过IE8自带调试工具调试,看看哪里不兼容。后面折腾了好久发现,360浏览器由于用的是IE内核,其开发工具调用的也是IE的开发工具。如果你的系统安装IE9以上版本,可以选择调用IE9以上版本进行开发调试。

阅读全文 »

MyBatis上手入门实例

发表于 2017-08-05 | 更新于 2018-08-15 | 分类于 框架 | 评论数: | 阅读次数:

MyBatis下载、配置及测试

点击下载
MyBatis在线中文文档
下载之后打开,如图:
这里写图片描述
第一个使我们需要用到的包,pdf文档是MyBatis英文手册,后面两个分别是javadoc文档和源码。
在这里我们还需要导入MySQL数据库驱动jar包。官方驱动jar包下载地址
这些准备以后,我们开始配置。

  1. 打开MyEclipse,导入jar包。在src下新建一个包,并新建配置文件conf.xml。如图:
    这里写图片描述
    阅读全文 »

阿里云Maven仓库地址

发表于 2017-08-05 | 更新于 2018-08-15 | 分类于 有料 | 评论数: | 阅读次数:

阿里云Maven仓库地址

http://maven.aliyun.com/nexus/#view-repositories;public~browsestorage
在maven的settings.xml 文件里配置mirrors的子节点,添加如下mirror

1
2
3
4
5
6
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

阅读全文 »

deepin下搭建基于github和hexo的个人博客

发表于 2017-08-04 | 更新于 2018-08-15 | 分类于 有料 | 评论数: | 阅读次数:

系统:Linux Deepin 15.4 x64

搭建步骤:

1、 安装git

1
$ sudo apt-get install git

查看git版本

1
$ git version

2、 安装Node.js及npm
a. 可以直接命令安装,但是命令安装的不是最新版本。

1
2
$ sudo apt-get install nodejs
$ sudo apt-get install npm

b. 本博客采用第二种方法,首先官网下载最新版,然后解压。将node,npm命令设置全局命令:

1
2
$ sudo ln -s /home/dudefu/Documents/node-v8.6.0-linux-x64/bin/node /usr/local/bin/node
$ sudo ln -s /home/dudefu/Documents/node-v8.6.0-linux-x64/bin/npm /usr/local/bin/npm

阅读全文 »
1…1213
Daniel X

Daniel X

專注于大数据技術,分享干货
125 日志
15 分类
63 标签
GitHub E-mail Weibo QQ
粤ICP备18110871号 © 2017 – 2021 dudefu
0%