Solo  当前访客:3 开始使用

存档: 2018 年 08 月 (3)

vim 显示行号,默认显示行号的设置

2018-08-03 19:30:55 imadiaos
0  评论    0  浏览
:set number

:set nu
,

老男孩

2018-08-01 18:01:36 imadiaos
0  评论    0  浏览
  • 笑,全世界都陪你笑;哭,只有你一个人流泪。
  • 回答错了问题并不可怕,可怕的是问错了问题,那就永远得不到正确的答案
  • 只剩下麻木的我没有了当年的热血。
  • 不管是沙还是石头,都会沉下去。
,

Java注解的玩儿法。

2018-08-01 17:02:19 imadiaos
0  评论    0  浏览

元注解是指注解的注解,包括@Retention @Target @Document @Inherited四种。 呃,看了一眼源码其实8(我截止到今天用的是8,2018/8/1)里面还有 @Repeatable。 先按顺序来分析: 1、@Retention作用 定义注解的保留策略 @Retention(RetentionPolicy.SOURCE): 注解仅保存在源码阶段,编译和运行时都不会有。 /** * Annotations are to be discarded by the compiler. / SOURCE, @Retention(RetentionPolicy.CLASS): 注解会在class字节码中存在,运行时不可见。此策略为默认。 /* * Annotations are to be recorded in the class file by the compiler * but need not be retained by the VM at run time. This is the default * behavior. */ CLASS, ....

,
TOP