Spring
文章平均质量分 52
liuqiang5151
这个作者很懒,什么都没留下…
展开
-
Was里面通过Spring配置分布式事务
1.登陆Was控制台,配置XA数据源,这有XA的数据源才可以支持分布式事务。2.在xml里面配置dataSource和transactionManager,applicationContext-was.xml<!-- JNDI DataSource --><jee:jndi-lookup id="dataSource" jndi-name="jdbc/db" />...原创 2010-01-31 11:29:49 · 294 阅读 · 0 评论 -
转:Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
转自:http://lengweiping1983.iteye.com/blog/248563在用main函数读取spring配置文件的时候报错 Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found Caused by: javax.xml.parsers.FactoryConfigurationErr...原创 2011-05-26 17:09:39 · 323 阅读 · 0 评论 -
Spring扫描jar包中的类
Spring通过component-scan扫描Bean,如果达成jar包,将失效。正确的做法是:在Eclipse 导出jar的时候,选中add directory entries选项。原创 2012-07-10 09:26:57 · 202 阅读 · 0 评论 -
解决503 Error: need EHLO and AUTH first
javax.mail.MessagingException: 503 Error: need EHLO and AUTH first !503错误。因为smtp服务器需要授权。在spring的配置中加入<prop key="mail.smtp.auth">true</prop>即可。 或者JavaMailSenderImpl sender = new Jav...原创 2012-09-13 11:10:03 · 3847 阅读 · 0 评论