摘要: 话不多说,直接贴出文件内容如下: # A Shotgun policy xx identities: # list roles to be used in the policy user1: {"role": {"name": "member", "mspId": "Org1MSP"}} user2 阅读全文
posted @ 2020-01-14 18:29 itwetouch 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 多catch块的代码优化 通常情况下编码的时候,针对不同的异常类型,会使用多个catch块包住,来对各自的异常做处理,如下所示: try{ ... }catch(***Exception e){ e.printStackTrace(); }catch(***Exception e){ e.print 阅读全文
posted @ 2020-01-14 17:25 itwetouch 阅读(318) 评论(0) 推荐(0) 编辑