- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 流水号的生成(日期+业务码+自增序列)
项目开发时,使用了两套数据库,开发环境和上线环境,数据库表中大多采用了自增主键, 比如:id int unsigned primary key auto_increment,但往往会碰到一些问题,比如: 开发环境中,使用爬虫抓取一些数据,建立索引,再把数据迁移到上线环境,会导致索引中的id和 上线环境数据库中id对不上,所以决定使用字符串作为主键。那么问题来了,如何生成唯一的序列号? 格式按
2015-06-29 12:01:47 36000 2
原创 项目自动化发布与部署
目前,部署的方式是:一个项目一台机器,使用3个tomcat部署的方式。以往,是本地(windows)开发、打包然后上传的Linux服务器上,不太方便,所以,使用SVN+Shell的方式自动化部署项目。主要思路:在Linux服务器上通过svn clone一份源码。当要新发布工程时,将本地的源码更新到svn,服务器上的源码也执行更新操作即可。先说明项目的部署文件夹:/xxx/tomcats/工程名。该文
2015-06-22 11:08:24 1271
原创 Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.Rectangle Area Assume that the t
2015-06-08 21:16:18 871
原创 Count Complete Tree Nodes
Given a complete binary tree, count the number of nodes.Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely filled, and
2015-06-06 13:36:27 1146
jQueryFileUploadMaster 插件 spring mvc简单整合
2013-08-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人