Java
wz5891
这个作者很懒,什么都没留下…
展开
-
Java Generics Quick Tutorial
Generics is a Java feature that was introduced with Java SE 5.0 and, few years after its release, I swear that every Java programmer out there not only heard about it, but used it. There are plenty of both free转载 2015-07-17 15:36:06 · 409 阅读 · 0 评论 -
MyBatis 插入空值时,需要指定JdbcType
可以看出,当参数的值为 NULL,且没有指定 ```jdbcType``` 时,mybatis会抛出 “JDBC requires that the JdbcType must be specified for all nullable parameters.” 异常。而当参数不为 NULL 时,Mybatis 会针对参数自身的类型调用 ```Pr原创 2016-10-04 00:29:54 · 5614 阅读 · 0 评论 -
Mybatis 内置 Java 类型别名与 typeHandlers
There are many built-in type aliases for common Java types. They are all case insensitive, note the special handling of primitives due to the overloaded names.原创 2016-10-04 00:41:41 · 8516 阅读 · 0 评论 -
SpringBoot 使用 @Value 从 YAML文件读取属性
在 YAML中有如下配置paypal: mode:live在类中,通过 @Value属性读取@Value("${paypal.mode}")private String mode;程序运行时,却报出错误Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'paypal.mode' in str原创 2016-12-13 21:31:55 · 29097 阅读 · 5 评论 -
Quartz 之 CronExpression
Provides a parser and evaluator for unix-like cron expressions. Cron expressions provide the ability to specify complex time combinations such as "At 8:00am every Monday through Friday" or "At 1:3转载 2016-12-28 19:59:42 · 326 阅读 · 0 评论