规范文档


license模块使用规范

<h1>修改配置文件</h1> <pre><code class="language-yaml">license: licensePath: d://license//license.lic storePass: '%%wyfc007' subject: cczb_license publicAlias: publicCert publicKeysStorePath: 'd://license//publicCerts.keystore' valid: path: /login,/logout,/refresh</code></pre> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=11ad65454f987e7435e1efd7cc1f32ed&amp;amp;file=file.png" alt="" /></p> <h1>查看硬件信息</h1> <p>调用当前服务的获取硬件信息接口 例如:<a href="http://127.0.0.1:7002/auth/license/getServerInfos">http://127.0.0.1:7002/auth/license/getServerInfos</a></p> <h2>返回结果</h2> <p>{ &quot;ipAddress&quot;: [ &quot;192.168.253.1&quot;, &quot;192.168.99.6&quot;, &quot;192.168.11.1&quot;, &quot;172.19.112.1&quot; ], &quot;macAddress&quot;: [ &quot;00-50-56-C0-00-08&quot;, &quot;34-99-71-00-F9-CE&quot;, &quot;00-50-56-C0-00-01&quot;, &quot;00-15-5D-9C-97-84&quot; ], &quot;cpuSerial&quot;: &quot;BFEBFBFF000806D1&quot;, &quot;mainBoardSerial&quot;: &quot;/4SBWPH3/CNCMC0018K00AC/&quot; }</p> <h1>生成license文件</h1> <p>1、将“cas-common-license”模块“resources”路径下的“publicCerts.keystore”文件复制至步骤1指定的“publicKeysStorePath”路径下 2、根据步骤2返回的硬件信息修改“LicenseGenerater”的main方法 3、执行“LicenseGenerater”的main方法生成license <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=9b721a727a71376cd55306ac859b05cb&amp;amp;file=file.png" alt="" /></p>

页面列表

ITEM_HTML