[Hybris]Hybris6.3环境搭建

1.        解压Hybris6.3. (HYBRISCOMM6300P_0-70002554.zip可在官网上下载)

2.        安装中国版基础代码 (例子中所有的chinatrail用需要的替换)

3.        把{HYBRIS_HOME}\hybris\bin\custom\sjet\sjetstorefront\web\addonsrc\chinacheckoutaddon\de\hybris\platform\chinaaccelerator\storefront\checkout\controllers\alipay\mock\AlipayMockWebController.java

文件中的

import de.hybris.platform.ychinaaccelerator.storefront.util.CSRFRequestDataValueProcessor;

注释,重新 importorg.sjet.ygcg.chinastorefront.util.CSRFRequestDataValueProcessor;

4.        把mysql的包

放到{HYBRIS_HOME}\hybris\bin\platform\lib\dbdriver

5.        {HYBRIS_HOME}\hybris\config\local.properties内容更改为

commerceservices.default.desktop.ui.experience=responsive

uiexperience.level.supported=DESKTOP

 

addon.china.install.strategy=B2C

#overwriteweb.gateway for alipay

web.gateway=http://electronics-cn.local:9001/baiyunstorefront/electronics-cn/zh/alipay/mock/gateway.do?

#overwritespringconfig for chinacheckoutaddon

baiyunstorefront.additionalWebSpringConfigs.chinacheckoutaddon=classpath:/chinacheckoutaddon/web/spring/chinacheckoutaddon-web-spring.xml

 

db.url=jdbc:mysql://localhost:3306/baiyun?useUnicode=true&characterEncoding=UTF-8

db.driver=com.mysql.jdbc.Driver

db.username=root

db.password=123

#mysql.allow.fractional.seconds=true

#build.parallel=true

 

hac.webroot=/hac

 

*MySQL数据库的版本一定要高于5.6

6.        cmd进入{HYBRIS_HOME}\hybris\bin\platform

        ->setantenv

        -> ant clean all

        ->hybrisserver

7.        启动服务器后进入http://localhost:9001/hac

8.        Platform->Initialization 按Initialize 初始化数据库


*如果需要hmc的话可以在core的extensioninfo.xml中加上

<requires-extension name="hmc"/>

<hmcmodule extensionclassname="xxx.core.hmc.xxxCoreHMCExtension"/>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值