做一个定时器,定时ping你的ip,如果可以连接的时候,就重启项目进行连接咯
1、定时器 http://www.foxtable.com/webhelp/scr/0657.htm
2、重启项目 application.restart