Implementation of license calculation in Hybris development environment

Every 30 days, the initialize command must be re-executed to clear all local data and then rebuild, which takes some time.

The license information displayed in the console is displayed through license.jsp:

The value of the remaining license days is bound to the field demoLicenseRemaining:

The calculation of the specific license is in the controller PlatformController.java corresponding to license.jsp:

The calculation is done through the License object, and the calculation result is injected into the demoLicenseRemaining field of the JSP model, and finally displayed in the JSP.

The license for the development environment will expire after 30 days:

Workaround: ant initialize This will trigger ant build. After about 30 minutes the build is complete:

Just restart the Hybris server.

To get more Jerry's original technical articles, please follow the public account "Wang Zixi" or scan the QR code below:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324418618&siteId=291194637