从ApplicationContext.xml到properties的配置方式转变

    • 使用ApplicationContext.xml,与使用Spring Boot的调用方式是互斥的。
    • ApplicationContext.xml不必要地引入了大量Spring的依赖,同时包括了大量不必要的配置项,较为臃肿。当前,我们使用fisco.properties及weidentity.properties两者组合。其中,fisco.properties记录了与FISCO-BCOS区块链节点相关的配置项,而weidentity.properties包括了WeIdentity SDK特有的功能配置项。实现上,其加载方式也对应由Spring Bean的注入方式转变成了显式读取。
      • 更新fisco.properties中的对应项
        • 将fisco.properties.tpl改名为fisco.properties
        • 设置chain.id,默认可设置为1
    • 更新完毕之后,将fisco.properties放到/resources/目录中
      • 更新weidentity.properties中的对应项
        • 将weidentity.properties.tpl改名为weidentity.properties
          • 更新节点信息nodes
        • 更新blockchain.orgid,为您的机构名,默认可设置为“test”
    • 更新完毕之后,将weidentity.properties放到/resources/目录中
      • 最后,更新节点的配置文件放到/resources/目录中
        • 如果您的FISCO-BCOS链为1.3版,请拷贝ca.crt和client.keystore

    调用方式