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;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>{
"ipAddress": [
"192.168.253.1",
"192.168.99.6",
"192.168.11.1",
"172.19.112.1"
],
"macAddress": [
"00-50-56-C0-00-08",
"34-99-71-00-F9-CE",
"00-50-56-C0-00-01",
"00-15-5D-9C-97-84"
],
"cpuSerial": "BFEBFBFF000806D1",
"mainBoardSerial": "/4SBWPH3/CNCMC0018K00AC/"
}</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;file=file.png" alt="" /></p>