build檔案檢測,使用b2c_acc recipit啟動伺服器:/home/jerrywang/Hybris/installer/recipes/b2c_acc/build.gradle
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.:recipes/b2c_acc:startat build_24qda9aair3teyrqc9izdrv89.run(/home/jerrywang/Hybris/installer/recipes/b2c_acc/build.gradle:79)
Executing: createConfig...
Buildfile: /home/jerrywang/Hybris/hybris/bin/platform/build.xml
簡單的啟動環境檢測,比如作業系統,jdk類型,Java編譯器類型等等:
列出對應檔案目錄的位置:
[echo] Extension file used: /home/jerrywang/Hybris/hybris/config/localextensions.xml
[echo] Platform home: /home/jerrywang/Hybris/hybris/bin/platform
[echo] Lg folder: /home/jerrywang/Hybris/hybris/log
[echo] Data folder: /home/jerrywang/Hybris/hybris/data
[echo] Config folder: /home/jerrywang/Hybris/hybris/config
[echo] Bin folder: /home/jerrywang/Hybris/hybris/bin
[echo] Temp folder: /home/jerrywang/Hybris/hybris/temp/hybriso
[echo] Boostrap bin folder: /home/jerrywang/Hybris/hybris/bin/platform/bootstrap/bin
列出加載的extension和module名稱:
Tenant名稱,啟動模式,作業系統類型,資料庫類型和存儲檔案,Java版本,Cache,web server類型都列印出來了:
啟動Solr伺服器,端口8983:
等待3分鐘,直到Solr成功啟動為止,看到Happy searching, 意味着稍後可以使用full text query了。
接下來是Spring開發程式員熟悉的context refresh操作了:
[localhost-startStop-2] [HybrisContextFactory] - Refreshing SpringContext (Global context) took: (7.980 s)
[m[32mINFO [localhost-startStop-2] [HybrisContextFactory] Initializing <> Spring ApplicationContext took: (8.708 s)
[m[32mINFO [localhost-startStop-2] [HybrisContextFactory] Loading <> spring config from extension (core) located in (core-spring.xml,persistence-spring.xml,core-media-spring.xml,core-profiling-spring.xml,core-jmx-spring.xml,core-filter-spring.xml,servicelayer-spring.xml,user-spring.xml,security-spring.xml,media-spring.xml,i18n-spring.xml,interceptor-spring.xml,event-spring.xml) took: (163.4 ms)
各種Bean的加載:
啟動indexer cronjob:
各種Spring post processing操作:
32mINFO [localhost-startStop-3 [MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [defaultPromotionProductRaoProvidersMapping] on Bean [raoProviders]m[32mINFO [localhost-startStop-3
[MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [defaultCouponRuleActionMetadataHandlersMergeDirective] on Bean [ruleActionMetadataHandlers]
[MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [givenCouponActionStrategiesMappingMergeDirective] on Bean [promotionActionStrategiesMapping]
[ListMergeDirectiveBeanPostProcessor] Post Processing ListMergeDirective [commerceQuoteCartCalculationMethodHookMergeDirective] on Bean [commerceCartCalculationMethodHooks]
[ListMergeDirectiveBeanPostProcessor] Post Processing ListMergeDirective [commerceAddToCartProductConfigMergeDirective] on Bean [commerceAddToCartMethodHooks]
[MapMergeDirectiveBeanPostProcessor] Post Processing MapMergeDirective [textFieldConfigurationHandlerRegistrar] on Bean [productConfigurationHandlers]
[m[32mINFO [localhost-startStop-7] [RemoveDefaultSessionFixationStrategyBeanPostProcessor] Spring default SessionFixationProtectionStrategy was not defined. Added HybrisSessionFixationProtectionStrategy
本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。