OFBiz搭建项目详细讲解



目标:创建第一个Ofbiz组件,在页面上显示“Hello OFBiz”

一、创建“Hello"组件

1、在hot-deploy(热部署)目录下创建hello子目录。

      (自定义OFBiz组件通常在hot-deploy目录下创建,在OFBiz框架和应用加载完后,自动加载)

2、在(hot-deploy/hello)目录下创建ofbiz-component.xml文件,负责让OFBiz知道hello组件的信息。

     可以参考OFBiz的组件中的相应文件,如:

     applocations/accounting/ofbiz-component.xml

<ofbiz-component name="hello"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
    <webapp name="hello"
                   title="hello ofbiz"
                   server="default-server"
                   location="webapp/hello"
                   mount-point="/hello"
                   app-bar-display="true"
</ofbiz-component>
<?xml version="1.0" encoding="UTF-8"?>
<ofbiz-component name="hello"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">

<webapp name="hello"
               title="hello ofbiz"
               server="default-server"
               location="webapp/hello"
               mount-point="/hello"
               app-bar-display="true"/>
</ofbiz-component>

<ofbiz-component name="hello">告诉OFBiz加载我们自己定义的name=“hello

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值