
Java
Paulmin
曾在某国际知名银行的软件中心,集团规模全球30万人,开发规范,主要负责证劵报文交易系统的开发。
现在惠州某大型企业工作近一年,主要负责核心分销系统的开发,包括订单处理,物流,仓库库存,运输等等,并且与各大电商(淘宝,京东,1号店等)对接系统。
以上经历我均为主要负责人!
展开
-
When to use static method in a java class
First , please understand its feature :* no need to instantiate a instance, i.e. simply you can just write: AutoTrace.start();* All instances will share one static method, consider the consistency原创 2013-08-06 13:54:42 · 899 阅读 · 0 评论 -
Tomcat 启动脚本[catalina.sh]理解
不知道从哪里转来的了。朋友,请不要告我侵权。但是你也写得不怎样。。catalina.sh#!/bin/sh# =============================================================# 该脚本设置正确的环境变量和系统信息,然后启动或者停止tomcat server# 具体的操作是:# 使用命令行参数作为args的实参,调用org.转载 2014-03-20 15:26:01 · 3512 阅读 · 0 评论 -
Java内存
http://it.deepinmind.com/java/2014/03/21/%E5%A6%82%E4%BD%95%E5%9C%A8Java%E4%B8%AD%E5%88%86%E9%85%8D%E8%B6%85%E8%BF%87-Xmx%E9%99%90%E5%88%B6%E7%9A%84%E5%86%85%E5%AD%98.html转载 2014-03-21 23:20:17 · 716 阅读 · 0 评论 -
JAVA 性能监视 JAMON can be with SpringWeb or jwebap
http://www.infoq.com/cn/articles/java-profiling-with-open-sourceThe Java Application Monitor (JAMon) is a free, simple, high performance, thread safe, Java API that allows developers to ea转载 2014-03-23 10:52:19 · 1419 阅读 · 0 评论 -
使用Dom4J实例
直接上代码,方便以后自己使用://请参考 上传发运同步报文.xml 进行dom4j//创建发货同步报文 Document document = DocumentHelper.createDocument(); document.setXMLEncoding("UTF-8"); Element amazonEnvelope = document.addE原创 2014-06-27 15:18:30 · 1250 阅读 · 1 评论 -
linux下的java远程调试jpda+tomcat
http://blog.youkuaiyun.com/kongqz/article/details/3971263转载 2014-07-03 11:07:39 · 835 阅读 · 0 评论 -
关于Java concurrent 计算框架的文章
canhttp://ifeve.com/fork-and-join-java/http://url.cn/LVMz2m转载 2014-08-24 16:44:18 · 718 阅读 · 0 评论 -
比ORM好用的将来使用的API
告别ORM的Hibernate与JPA,见文章:http://www.importnew.com/13098.html#comment-88226什么是转载 2014-09-22 22:59:32 · 762 阅读 · 0 评论 -
String.intern节省内存空间或内存溢出
我们可以看到执行的结果为:The busy memory is: 1252880注意:如果把p.setName(s)这句换成p.setName(s.intern());再执行该程序我们可以看到结果:The busy memory is: 515944我们可以到经过细微的改变我们可以看到其占用的内存不是一个数量级的那么这个intern()函数做了什么呢?我认为:在String对象转载 2014-09-27 12:01:02 · 1627 阅读 · 0 评论 -
重温classloader - 解决ClassNotFoundException和 NoClassDefFoundError 以及OSGi
类加载器是 Java 语言的一个创新。它使得动态安装和更新软件组件成为可能。本文详细介绍了类加载器的相关话题,包括基本概念、代理模式、线程上下文类加载器、与 Web 容器和 OSGi 的关系等。开发人员在遇到 ClassNotFoundException和 NoClassDefFoundError等异常的时候,应该检查抛出异常的类的类加载器和当前线程的上下文类加载器,从中可以发现问题的所在。在转载 2014-09-27 12:02:59 · 1848 阅读 · 0 评论 -
lambada表达式的迷人之处
Java8开始就有对lambada表达式的支持了,可惜java8部队转载 2014-09-27 21:47:36 · 2424 阅读 · 0 评论 -
关于spring boot - 快速构建spring程序
旨在让你接近零烦恼快速开发spring应用,快速帮你集成各种spring组件(比如spring security, mvc, data, amqp, web service, etc)原创 2014-10-05 20:56:56 · 1358 阅读 · 0 评论 -
聚石塔应用构建
mysql jdbc & java 的数据类型mapping: http://blog.sina.com.cn/s/blog_4b5bc01101010u1k.html原创 2014-10-27 17:46:49 · 2734 阅读 · 0 评论 -
学习Apache Shiro - 预研
官方手册导航:http://shiro.apache.org/documentation.html官方参考手册:http://shiro.apache.org/reference.htmlJava API Doc:http://shiro.apache.org/static/1.2.3/apidocs/================原创 2016-02-22 23:25:28 · 511 阅读 · 0 评论 -
Eclipse 下利用 gradle 构建系统
https://my.oschina.net/baochanghong/blog/415305在 eclipse 下利用 gradle 构建系统基本开发环境操作系统:本教程使用的为 Windows Vista Enterprise, 如果您的系统是 Linux 的,请选择下载对应版本的其他工具,包括开发工具、Java EE 服务器、Apache Ant、SoapUI。开发工具:转载 2017-07-29 16:36:01 · 1268 阅读 · 0 评论 -
springboot如何测试打包部署
很多网友会时不时的问我,spring boot项目如何测试,如何部署,在生产中有什么好的部署方案吗?这篇文章就来介绍一下spring boot 如何开发、调试、打包到最后的投产上线。开发阶段单元测试在开发阶段的时候最重要的是单元测试了,springboot对单元测试的支持已经很完善了。1、在pom包中添加spring-boot-starter-test包引用转载 2017-07-29 10:25:14 · 685 阅读 · 0 评论 -
springboot + mybatis 多数据源最简解决方案
说起多数据源,一般都来解决那些问题呢,主从模式或者业务比较复杂需要连接不同的分库来支持业务。我们项目是后者的模式,网上找了很多,大都是根据jpa来做多数据源解决方案,要不就是老的spring多数据源解决方案,还有的是利用aop动态切换,感觉有点小复杂,其实我只是想找一个简单的多数据支持而已,折腾了两个小时整理出来,供大家参考。配置文件pom包就不贴了比较简单该依赖的就依赖,主要是数转载 2017-07-29 11:53:48 · 582 阅读 · 0 评论 -
spring mvc tiles NoSuchDefinitionException
页面使用 Ajax 在spring mvc的controller 做service后,没有返回任何 response 消息,导致spring mvc的tiles组件报错:找不到 tiles view 。。。+_+解决办法:返回 ok 消息经 spring mvc dispatchServlet 给页面的 Ajax原创 2014-02-20 10:13:35 · 1088 阅读 · 0 评论 -
socket programming
package com.pc.socket;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.io.OutputStream;import java.net.InetAddress;import java.net.ServerSoc原创 2013-08-09 00:04:34 · 562 阅读 · 0 评论 -
Apache JMeter - load test tool
What is it? Where to get it?Here you go: http://jmeter.apache.org/download_jmeter.cgiStart to download - apache-jmeter-2.9.zip if you are on windows platform. Unzip it to somewhere then double c原创 2013-08-24 21:11:26 · 1502 阅读 · 0 评论 -
SWING example
Just a start-up example , let you get a rough idea how to init a desktop application:import java.awt.Image;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.Acti原创 2013-08-17 07:25:28 · 628 阅读 · 0 评论 -
NIO - java new io2 since jdk7
new feature compared with old java.io package* real support file operation across platforms* real support for symbolic links* more support on file metadata , such as permission, owner and other原创 2013-08-05 21:27:04 · 1400 阅读 · 0 评论 -
Java NIO socket(network) program framework - Apache mina & JBoss netty (simple introduction)
The 2 APIs are created by a Korean guy - Trustin Lee (who graduated at Yonsei University in Korea). You can visit here (http://kr.linkedin.com/in/trustin) to learn more from him. 10 years IT working原创 2013-08-24 21:34:14 · 1533 阅读 · 0 评论 -
sth. about SSL (secure socket layer), JSSE (java secure socket extension)
SSL stands between application layer (e.g. HTTP, FPT, SMTP etc) and transport layer, the-man-in-middle (TCP osi 5 layer theory) Oracle JSSE User Guide:http://docs.oracle.com/javase/6/docs/techno原创 2013-09-08 23:10:36 · 790 阅读 · 0 评论 -
UML relationship types
DRAG1. Dependency1.1 依赖--------->(虚线)2. Realization (实现)---------|>(虚线)3. Association 关联3.1. 组合 - 人-----------细胞 (实线) 3.2. 聚合公司---------雇员(实线)注:以上俩种都是整体和部分的关系。第一种强原创 2013-09-20 16:21:08 · 781 阅读 · 0 评论 -
Spring core
Let's write some spring codes tomorrow.I'm familiar with spring and hibernate.原创 2013-10-09 17:54:21 · 640 阅读 · 0 评论 -
Nagios+Cacti
Pending to learn more about this:网络和设备监控区域通过Nagios+Cacti集成对网络和进行监控原创 2013-10-10 14:51:38 · 824 阅读 · 0 评论 -
Notes for Netty 3.x with a simple NIO chat application
study link: http://netty.io/3.6/guide/#architectureNetty 3.x NIO program flow===========================================原创 2013-09-03 23:38:58 · 1601 阅读 · 0 评论 -
华为面试有感
2013年8月10号,这次是过去华为坂田基地面试。华为xx部门在培训中心小西门食堂里面搞了一个专场。一般都会有笔试环节,为此我也“复习”了一番。哪知道没有笔试,看了一点算法题目,+-+,没派上用场。一共是三面,最后是部门的direct(? 应该是部门的头头)跟我谈。他说的某些话,让我挺郁闷的。事后我也觉得应该在软实力方面下一番功夫。算上这次,已经是两次跟华为的部门头头接触过了,感觉他们都有点傲原创 2013-08-10 23:32:30 · 1424 阅读 · 4 评论 -
Take care on the encoding of web server
后台验证表单中文长度时,由于本地开发环境使用UTF-8,一个汉字3个字节,使用string.getBytes().length发现 数量*3 。但测试环境使用 GBK[root@OPS2-TEST sysconfig]# cat i18nLANG="zh_CN.GBK"[root@OPS2-TEST sysconfig]# echo $LANGzh_CN.GBK[root@OPS2原创 2013-11-01 08:58:55 · 758 阅读 · 0 评论 -
JVM performance profiling (有待整理)
Agendamemory model3 parts: heap, permgen (method area) , thread stack(pointer, local var)heap: young and old generation ?? permanent generation y原创 2013-08-20 15:37:56 · 963 阅读 · 0 评论 -
Use JSP to export as excel
Purely JSP without any addtional excel API. Simple but lack of funtional excel control.Look below codes<% String fileName=(String)request.getAttribute("fileName"); fileName = new String(fileNa原创 2013-11-09 10:00:02 · 1164 阅读 · 0 评论 -
Use HibernateTemplate in Spring
/第一种方法: String hql = "select count(*) from User as user"; Integer count = (Integer)getHibernateTemplate().find(hql).listIterator().next(); return count.intValue();//第二种方法: String hql转载 2013-10-11 17:40:18 · 828 阅读 · 0 评论 -
你是否应该使用规则引擎
“规则引擎由推理引擎发展而来,是一种嵌入在应用程序中的组件,实现了将业务决策从应用程序代码中分离出来,并使用预定义的语义模块编写业务决策。接受数据输入,解释业务规则,并根据业务规则做出业务决策。” -- 摘自百度百科。上面的解释可能过于晦涩了。我们来看看Martin的文章,就觉得这是很简单的东西了。Martin Fowler关于规则引擎的介绍:https://martinfowle原创 2017-09-01 10:44:27 · 4580 阅读 · 1 评论