java的注解处理器类主要是AnnotatedElement接口的实现类实现,为位于java.lang.reflect包下。由下面的class源码可知AnnotatedElement接口是所有元素的父接口,这时我们通过反射获得一个类的AnnotatedElement对象后,就可以通过下面表格的几个方 ...
分类:
其他好文 时间:
2019-02-16 18:18:27
阅读次数:
212
bash中如何实现条件判断?条件测试类型: 整数测试 字符测试 文件测试 一、条件测试的表达式: [ expression ] 括号两端必须要有空格 [[ expression ]] 括号两端必须要有空格 test expression组合测试条件: -a: and -o: or !: 非 二、整数 ...
分类:
系统相关 时间:
2019-02-13 12:50:57
阅读次数:
188
-- 取出当前时间的分量DECLARE @mm int = datepart(mm,getdate()); -- 月DECLARE @dw int = datepart(dw,getdate()); -- 星期几DECLARE @dd int = datepart(dd,getdate()); -- ...
分类:
数据库 时间:
2019-02-12 13:25:30
阅读次数:
212
1 Option Explicit 2 3 Private Const UnitPixel As Long = 2 4 Private Const EncoderQuality As String = "{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}" 5 6 Priv... ...
分类:
其他好文 时间:
2019-02-06 13:23:17
阅读次数:
195
For example you are building your own module, the same as Lodash: my-lodash.d.ts Normally you can install @types for popluar 3rd-party libs, if you ha ...
分类:
其他好文 时间:
2019-02-06 09:35:41
阅读次数:
193
--查询现有所有数据库表的索引情况 Select indexs.Tab_Name As [表名],indexs.Index_Name As [索引名] ,indexs.[Co_Names] As [索引列], Ind_Attribute.is_primary_key As [是否主键],Ind_At ...
分类:
数据库 时间:
2019-02-03 00:53:28
阅读次数:
365
Interface declares operations, not data structure Implementation is hidden from client (encapsulation) Use features of programming language to ensure ...
分类:
其他好文 时间:
2019-01-28 14:10:07
阅读次数:
201
1、oracle主键修改的思路是:先判断主键是否存在,如果存在则先删除后新建,如果不存在,则直接新建,如下: 注意: declare与alter之间要有反斜杠/,否则报错; 主键如果不存在的话,ALTER TABLE TEST_CLASS DROP PRIMARY KEY;是会报错的,因此必须先判断 ...
分类:
其他好文 时间:
2019-01-28 12:03:35
阅读次数:
132
如果我们要使用MyBatis进行数据库操作的话,大致要做两件事情: 定义dao接口文件 在dao接口中定义需要进行的数据库操作方法。 创建映射文件 当有了dao接口后,还需要为该接口创建映射文件。映射文件中定义了一系列SQL语句,这些SQL语句和dao接口一一对应。 MyBatis在初始化的时候会 ...
分类:
其他好文 时间:
2019-01-27 22:02:30
阅读次数:
167
把html文件打包进index.js 1 新建文件 typings.d.ts declare module "*.html" { const content: string; export default content; } 2 在build/webpack.base.js 里新增配置: { te ...
分类:
Web程序 时间:
2019-01-27 21:45:15
阅读次数:
345