Home > Database > Mysql Tutorial > Spring+Hibernate常见错误

Spring+Hibernate常见错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:09:45
Original
1055 people have browsed it

spring管理hiberante事务,设置切面的时候一定要考虑所有可能涉及事务的地方,不然切面没有涉及到而有数据库操作的地方很占用数据

1. spring管理hiberante事务,设置切面的时候一定要考虑所有可能涉及事务的地方,不然切面没有涉及到而有数据库操作的地方很占用数据库连接不能释放

2. 使用rmi时如应用部署的服务器机器存在多块网卡多个ip时,客户端连接服务时会报什么127.0.0.1 confused connetion,这时须要设置rmi注册的ip,System参数,,system.setProperty("java.rmi.server.hostname","XXX.XXX.XXX.XXX");当然这个设置应该在rmi注册之前

3.使用rmi时穿越防火墙是个难题(如报错 : no route to host),但spring org.springframework.remoting.rmi.RmiServiceExporter 服务暴露器提供了servicePort属性设置,即设置服务端口,rmi用一个端口监听服务(registryPort),一个用于通信(servicePort),这个防火墙只要开放这个两个端口就行了

linux

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template