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
,默认文件:/data/docker/webapp/license;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}'
linux环境执行命令:
license/get_server_info.sh
,可以获取到CPU和主板序列号。
platomix-gmetry-framework模块中:org.springblade.core.license.LicenseManager#main()
blade.license.filePath=/dockerWebappDir/lincese
#如果禁用license校验,可以通过配置关闭。【默认开启状态】
blade.license.enabled=false