license授权包含2部分内容:
platomix-gmetry-framework模块中:org.springblade.core.config.SecureConfiguration#licenseInterceptor()
blade.license.enabled=true
platomix-gmetry-framework模块中:org.springblade.core.license.LicenseManager#validateOfLogin()
blade.license.filePath
,对授权文件名没有要求,一般可以使用:lincese_key或lincese.key;platomix-gmetry-framework模块中:org.springblade.core.license.LicenseManager#main()
Linux环境执行命令:
//cpu序列号
dmidecode -t processor | grep 'ID' | awk -F ':' '{print $2}' | head -n 1
//主板序列号
dmidecode | grep 'Serial Number' | awk -F ':' '{print $2}' | head -n 1
Windows环境执行命令:
//cpu序列号
wmic cpu get processorid
//主板序列号
wmic baseboard get serialnumber
Mac环境执行命令:
//cpu序列号
system_profiler SPHardwareDataType | fgrep 'UUID' | awk '{print $NF}'
//主板序列号
system_profiler SPHardwareDataType | fgrep 'Serial' | awk '{print $NF}'
platomix-gmetry-framework模块中:org.springblade.core.license.LicenseManager#main()
blade.license.filePath=/dockerDir/lincese/lincese_key
#如果禁用license校验,可以通过配置关闭。【默认开启状态】
blade.license.enabled=false