上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页
摘要: /opt/Tomcat/temp权限问题,缓存文件目录!没有新建,有的话,看看权限设置; 阅读全文
posted @ 2013-06-14 11:11 悟寰轩-叶秋 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 现在我们一起来看看,用Java如何操作Microsoft Word。jacob,官网是http://danadler.com/jacob 这是一个开源的工具。最新版本1.7官方的解释是:The JACOB Project: A JAva-COM Bridge这是官方对下载文件的说明:jacob.jar: a JAR file for the java classes which you must add to your CLASSPATH. The package names replace com.ms with com.jacob (for example com.ms.com.Varia 阅读全文
posted @ 2013-06-14 10:05 悟寰轩-叶秋 阅读(592) 评论(0) 推荐(0) 编辑
摘要: TransactionTemplate的源码如下:public class TransactionTemplate extends DefaultTransactionDefinition implements TransactionOperations, InitializingBean{ . . . }TransactionTemplate继承了DefaultTransactionDefinition,实现了TransactionOperations,InitializingBean接口。先研究InitializingBean接口InitializingBean接口为bean提供... 阅读全文
posted @ 2013-06-13 18:18 悟寰轩-叶秋 阅读(11499) 评论(0) 推荐(1) 编辑
摘要: java.io.tmpdir – 默认临时文件路径System.getProperty("java.io.tmpdir")File jarFile = File.createTempFile("EJob-", ".jar", new File(System.getProperty("java.io.tmpdir"))); 阅读全文
posted @ 2013-06-13 11:57 悟寰轩-叶秋 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 在缺省模式下,MYSQL是autocommit模式的,所有的数据库更新操作都会即时提交,所以在缺省情况下,mysql是不支持事务的。但是如果你的MYSQL表类型是使用InnoDB Tables 或 BDB tables的话,你的MYSQL就可以使用事务处理,使用SET AUTOCOMMIT=0就可以使MYSQL允许在非autocommit模式,在非autocommit模式下,你必须使用COMMIT来提交你的更改,或者用ROLLBACK来回滚你的更改。示例如下:START TRANSACTION;SELECT @A:=SUM(salary) FROM table1 WHERE type=1;UP 阅读全文
posted @ 2013-06-13 11:55 悟寰轩-叶秋 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 否则启动会报错:java.lang.IllegalArgumentException: Mapped Statements collection already contains value for DAO类名.方法名() 阅读全文
posted @ 2013-06-13 11:53 悟寰轩-叶秋 阅读(1578) 评论(0) 推荐(0) 编辑
摘要: 使用maven搭建工程时,难免要加载大量的第三方的jar包、zip包比较少用,而maven的官网提供的jar往往不能满足需求,这时需要我们手动加载到我们本地或nexus私服的仓库中。1.加载jar包到本地 (以加载saxon-dom-9.0.jar为例)首先在工程的pom.xml文件中加入Xml代码<dependency><groupId>net.sf.saxon</groupId><artifactId>saxon-dom</artifactId><version>9.0</version></depe 阅读全文
posted @ 2013-06-09 14:47 悟寰轩-叶秋 阅读(6121) 评论(0) 推荐(1) 编辑
摘要: til:properties in Spring reads configuration file from a location. And id is defined by util:properties and that id can be used to read property from configuration file. In the below example we have a configuration file in the classpath. And I will read it with help of @Value. app-conf.xml<beansx 阅读全文
posted @ 2013-06-08 15:56 悟寰轩-叶秋 阅读(2388) 评论(0) 推荐(0) 编辑
摘要: org.mybatis.spring.mapper.MapperScannerConfigurer早于配置文件的载入context:property-placeholder解决方式:http://code.google.com/p/mybatis/issues/detail?id=414或直接手写数据源;<bean name="ScannerConfigurer" class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="sqlSess 阅读全文
posted @ 2013-06-08 14:46 悟寰轩-叶秋 阅读(3805) 评论(1) 推荐(0) 编辑
摘要: 标准web工程在eclipse中利用m2eclipse插件添加依赖管理后,在部署过程中没有将依赖的jar包自动拷贝到/WEB-INF/lib中。参考了一些朋友的做法手动执行[java] view plaincopymvndependency:copy-dependencies-DoutputDirectory=src/main/webapp/WEB-INF/lib-DincludeScope=runtime命令将jar包拷贝到/WEB-INF/lib目录下。这种做法固然可以,但是也会带来一些不便。1、需要手动执行命令。2、不能时时更新。 以下列出网上查找到的解决方法,m2eclipse plu 阅读全文
posted @ 2013-06-07 18:17 悟寰轩-叶秋 阅读(37232) 评论(3) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页