Topshelf ConfigurationWhile the Quickstart gives you enough to get going, there are many more features available in Topshelf. The following details th...
分类:
其他好文 时间:
2015-04-24 22:35:23
阅读次数:
171
监控spring配置的properties文件,当配置文件修改后自动重启spring
本插件适用于集群的web应用,通过配置中心管理配置文件
原理:
使用 ApplicationListener#onApplicationEvent 监听配置spring启动,启动完成后开启监控线程ConfMonitorMain#start,当某个配置文件修改后ConfMonitorMain通知Con...
分类:
编程语言 时间:
2015-04-24 21:14:35
阅读次数:
227
今天遇到一个广播不能接收的问题,搞了半天都解决不了,广播确定是注册的,没有被拦截,经过仔细分析,
发现原因是我的广播的intent的内容过大,以后大家查看log,如果出现
JavaBinder-Failed
Binder Transaction的提示的话,就应该是这个问题了...
分类:
其他好文 时间:
2015-04-24 19:18:13
阅读次数:
118
http://extundelete.sourceforge.net/options.html误删除/usr/share目录因此考虑恢复目录过程如下:1.选用extundelete软件来进行恢复,源码编译安装[root@84-monitor src]# bunzip2 extundelete-0.2...
分类:
其他好文 时间:
2015-04-24 18:34:45
阅读次数:
243
当您尝试从远程计算机访问 Web 服务时,不会显示“调用”按钮。并且,您会收到以下错误信息:The test form is only available for requests from the local machine解决方法:1.通过编辑 Web 服务所在的 vroot 的 Web.con...
分类:
Web程序 时间:
2015-04-24 18:19:11
阅读次数:
473
自治事务的使用,独立于外层的事务控制
create or replace procedure insert_err_po(
OrderNo number,CycleId number
)
is
pragma autonomous_transaction;
begin
insert into tt_err_po(po_num_id,cycle_num_id...
分类:
数据库 时间:
2015-04-24 17:00:24
阅读次数:
190
一、数据库事务的定义 数据库事务(Database Transaction) ,是指作为单个逻辑工作单元执行的一系列操作。事务处理可以确保除非事务性单元内的所有操作都成功完成,否则不会永久更新面向数据的资源。通过将一组相关操作组合为一个要么全部成功要么全部失败的单元,可以简化错误恢复并使应用程序更....
分类:
Web程序 时间:
2015-04-24 13:55:36
阅读次数:
191
查了一下相关资料,整理如下:
原因:Hibernate4 No Session found for current thread原因
解决方法:
1. 在spring 配置文件中加入
程序代码
并且在处理业务逻辑的类上采用注解
程序代码
@Service
public class CustomerServiceImp...
分类:
编程语言 时间:
2015-04-24 10:38:12
阅读次数:
194
package?hibernate.test;
import?hibernate.test.pojo.Person;
import?org.hibernate.Session;
import?org.hibernate.SessionFactory;
import?org.hibernate.Transaction;
import?org.hibernate.cfg.Con...
分类:
Web程序 时间:
2015-04-23 23:38:55
阅读次数:
798
一、问题起源
在MySQL的官方文档中有明确的说明不支持嵌套事务:
1. Transactions cannot be nested. This is a consequence of the implicit commit performed for any current transaction when you issue a START TRANSACTION statement or...
分类:
数据库 时间:
2015-04-23 15:49:47
阅读次数:
179