### Rails 异常处理 的多种处理方法
1. routes match '*path', via: :all, to: 'controller#action'
2. application.rb 的 exception_app
```ruby
# application.rb
config.exceptions_app = ->(env) ...
分类:
其他好文 时间:
2015-07-06 19:53:39
阅读次数:
93
1.Private members of superclass are not directly accessible to subclass. As in this example, Animal variable noOfLegs is not accessible to Cat class but it can be indirectly accessible via getter and s...
分类:
编程语言 时间:
2015-07-06 17:56:02
阅读次数:
160
4、目标方法的调用
如果没有拦截器会对目标对象方法直接调用。对于JDKDynamicAopProxy代理对象是通过AopUtils使用反射机制实现的。在这个调用方法中首先得到调用方法的反射对象,然后使用invoke启动对方法反射对象的调用。源码如下: /**
* Invoke the given target via reflection, as part of an AOP me...
分类:
编程语言 时间:
2015-07-05 11:10:32
阅读次数:
1001
If your environment just got vCenter from VMware, and again, just you have a lots of ESXi servers, below script should be helpful.vCenter itself has f...
分类:
系统相关 时间:
2015-07-01 17:24:58
阅读次数:
266
《—》
1、执行 service network restart
出现以下错误
Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
2、根据上面的提示,执...
分类:
Web程序 时间:
2015-06-30 15:03:15
阅读次数:
142
刚进来的时候,觉得自己很能干,什么都能做,前端,后端,页面,数据库,什么都能参和一下。 现在吧, 突然觉得自己特别菜,前端,后端,页面,数据库没有一样深入研究过。以前觉得C#简直是小case,相比java来讲,因为我之前一直是学习java的,现在看着C# via clr这本书,发现也有让我...
分类:
其他好文 时间:
2015-06-29 21:50:49
阅读次数:
117
控制台打印:Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is
insecure. Temporary exceptions can be configured via your app's Info.plist file.
解决办法:修改inf...
分类:
Web程序 时间:
2015-06-29 20:27:20
阅读次数:
154
呼叫保持流程图
呼叫保持信令:
1) 用户1000发送re-INVITE消息给IPBX,需要保持1000和1002之间的通话。Re-INVITE消息携带SDP中c=IN IP4 0.0.0.0,说明该re-INVITE消息是呼叫保持消息。
INVITE sip:1002@192.168.50.22:5060SIP/2.0
Via: SIP/2.0/UDP192.168.50.20...
分类:
其他好文 时间:
2015-06-27 16:46:48
阅读次数:
318
错误描述:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your...
分类:
移动开发 时间:
2015-06-26 17:46:44
阅读次数:
126