作者:threeperson

IllegalStateException: Type handler was null on parameter mapping for proper

```` if (parameterMapping.typeHandler == null) { throw new IllegalStateException("Type handler was null on parameter mapping for property '" + paramet

threeperson threeperson 发布于 2017-04-01

golang build 静态资源

golang build 只会将.go打包到可执行文件中,但是静态文件不会被打入。 web网站肯定是有静态资源的例如css js 或者html文件。如果想build的包可以用, ##### 一种方式是将静态资源文件个可执行的二进制文件放在同一个目录,然后执行./execute_file #### 另

threeperson threeperson 发布于 2017-02-03

OpenSSL 生成证书签名

mac上生成证书签名步骤很繁琐,于是在网上搜了一下,发现一个在线生成证书签名的网址[https://www.digicert.com/easy-csr/openssl.htm?rid=115630](https://www.digicert.com/easy-csr/openssl.htm?rid=

threeperson threeperson 发布于 2016-11-03

maven build 加载本地jar

####添加依赖 ``` <dependency> <groupId>cn.xxx</groupId> <artifactId>xxx</artifactId> <version>1.5.3-SNAPSHOT</version> </dependency> ``` ####添加plugin ```

threeperson threeperson 发布于 2016-07-03
git

git export source code

git archive --format zip --output "./subject_contract.zip" master -0

threeperson threeperson 发布于 2016-06-01

spring jdbcTemplate 批量插入返回自增id

项目中一个业务场景包含两个相互依赖的批量插入,第二次批量插入依赖第一次批量插入数据的自增id。我们的工程依赖的spring jdbcTemplate,于是我就翻看了一下jdbcTemplate的源码,发现批量插入接口,只是单存的返回影响的列表,并没有实际意义。 ``` public int[] ba

threeperson threeperson 发布于 2016-03-22

给html代码块添加行号

[Threeperson](http://www.threeperson.com)代码块添加了行号,阅读代码更加清晰,这个也是为了方便后续的评论功能。代码行号样式并不是我写的,本人css资历有限,其实js也是弱的不行,不过拿来即用的本事还是有一点。闲话少说,上代码。 #### 1. 第一步引入pre

threeperson threeperson 发布于 2016-02-10

go error 枚举

golang没有提供枚举支持,但是枚举在一些业务场景中却是十分重要的。举个简单的例子:发表帖子,需要对帖子做一些校验。这时我们可能就需要定义一些异常变量,这些常量自然是维护在枚举中语意更强,使用更加灵活。下面我简单介绍一下threeperson异常枚举实现思路。 #### iota 给const绑定

threeperson threeperson 发布于 2015-12-01

beego redis 自定义

threeperson博客开发中也是用到了缓存的,翻看了一下beego的代码,发现是包含cache模块的。自行封装了一个redis实现,增加了独立的hset和hget函数。 ####redis struct ``` package caches import ( "github.com/astaxi

threeperson threeperson 发布于 2015-09-20

beego orm 扩展

beego orm 扩展,开发效率提升100% 主要文件功能概要 condition.go //解析各种操作原语 db.go //orm 扩展 generic_sql_builder.go //构建sql pagination.go //分页struct query.go //sql操作接口 sql

threeperson threeperson 发布于 2015-08-10

linux ping 域名不通,ping ip可以通

``` echo 'nameserver 8.8.8.8' >> /etc/resolv.conf ```

threeperson threeperson 发布于 2010-05-29