摘要:
mysql默认存储引擎为MyISAM是不支持事务的, 需要设置为InnoDB模式 阅读全文
摘要:
public static byte[] toBytes(boolean[] arrs){ int f = 0;byte b = 0; byte[] ret = new byte[arrs.length/7 + (arrs.length%7==0?0:1)]; ... 阅读全文
摘要:
最近在修改别人生成附件的程序,要在其基础上加上页眉页脚和水印,发现是用itext生成Rtf文件,试了以下几种方式来实现修改1、新建RtfHeaderFooter对象header,将页眉的图片以Image的形式加入header,并将header加入document,页脚footer也一样,但水印没办法加2、放弃了方法一,使用RtfWriter2的importRtfDocument方法,将已经做好带有页面页脚水印的Rtf文件当做模版引入document,发现只有水印被引入了,页眉页脚没有,无语3、综合方法一二,引入做好的模板(只有水印),然后用方法一,将页眉页脚加入document,发现水印没了, 阅读全文
摘要:
for(var i in data){ } i表示对象中的key 阅读全文
摘要:
1、maven-war-plugin貌似只有2.0.2的版本能exlude,不知道怎么回事,写法如下 org.apache.maven.plugins maven-war-plugin 2.0.2 ... 阅读全文
摘要:
Technorati 标签: Three.js 1、旋转物体与相机 objectName.rotation.set( theta_x, theta_y, theta_z ); 或 Object.name.rotation.x = theta_x; Object.name.rotation.y = theta_y; Object.name.rotation.z = theta_... 阅读全文
摘要:
(文章来源一个日本鬼子)<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>Three.js Lesson</title> <!--引入Three.js--> <script src="../src/Three.js"></script> <style type="text/css"> div#canvas3d{ border: none; curso 阅读全文
摘要:
Juno (Eclipse 4.2) 的OSGI 依赖的最基本插件 为:org.eclipse.osgiorg.eclipse.equinox.consoleorg.apache.felix.gogo.runtimeorg.apache.felix.gogo.commandorg.apache.felix.gogo.shell 阅读全文