教程可见http://www.cnblogs.com/lbhqq/p/6830875.html