1. 首页
  2. 编程语言
  3. Java
  4. ofbiz经典教程

ofbiz经典教程

上传者: 2020-07-30 21:16:36上传 PDF文件 2.18MB 热度 37次
ofbiz 技术文档,非常详尽,速度下载看看吧。学习ofbiz拿高薪总的目录首先,进入 ofbiz目录:C: Javalofbiz-release402008-12-2104:1310, 856. classpath2008-122104:131, 127.project2008-12-2104:13Svn2008-12-2104:131,110ant2008-12-2104:131,121 ant bat2008-12-2104:135,981 APACHE2 HEADER2008-12-210412applications2008-12-2104:1310,006 build. xml2008-12-2104:13framework2008-12-2104;10hot-deploy2008-12-2104:131, 233 ij. ofbiz2008-12-2104:131997 KEYS2008-12-2104:13102,937 LICENSE2008-12-2104:13362 mergefromtrunk bat2008-12-2104:13161 mergefromtrunk sh2008-122104:1310,687 NOTICE2008-12-2104:1356, 336 ofbiz. jar2008-12-2104:138. 588 OPTIONAL LIBRARIES2008-12-2104:134. 140 rc ofbiz2008-12-2104:133,226 README2008-12-2104:10runtime2008-12-2104:13specialpurpose2008-12-2104:131,361 startofbiz bat2008-12-2104;131710 startofbiz sh2008-12-2104:131, 485 stopofbiz shOFBIZ釆用了基于组件的架构。这就是说,每一个应用程序在一个组件内。这允许外部的和定制化的应用程序能够很容易的被包含近来applicationsC: java\ofbiz-release4.0\ applications2008-12-2104:13accounting2008-12-2104:123,353bud.×m2008-12-2104:121, 858 component-load xml2008-12-2104:13content2008-12-2104:13ecommerce2008-12-2104:11humanres2008-12-2104:13manufacturing2008-12-2104:13marketing2008-12-2104:13order2008-12-2104:13party2008-12-2104:13product2008-12-2104:13securityext2008-12-2104:13workeffortApplications日录,包含了 OFBIZ核心的应用程序组件,如订单管理,电子商务存储等component- load. xm文件配置需夏线入哪几个应用程序组件。这里的每个组件,都是个基于 OFBIZ构建的Web应用程序frameworkC: java\ofbiz- release.0\ framework2008-12-2104:13appserver2008-12-2104:13lase2008-12-2104:136.868 build xml2008-12-2104:13catalina2008-12-2104:13common2008-12-2104:132, 501 component-load. xml2008-12-2104:13datafile2008-122104:13entit2008-12-2104:13ntityext2008-12-2104:13example2008-12-2104:13geronImo2008-12-2104:13gulapp2008-12-2104:12Images2008-12-2104:132008-12-2104:13minhang2008-12-2104;13security2008-12-2104:13service2008-12-2104:12shark2008-12-2104:13testtools2008-12-2104:13Wera2008-12-2104:132008-12-2104:13widget2008-12-2104:13workflowFramework框架日录,包含 OFBIZ框架的组件,例如实体引擎和服务引擎。这是 OFBIZ框架的核心,其他应用程序都是基于它来构建的。 component-oad.xm文件配置需要载入哪儿个框架组件。specialpurposeC: java\ofbiz-release 40\specialpurposespecialpurpose专门目水,包含一些其他的应用程序,不是 OFBIZ核心的一部分。hot-deployC: java\ofbiz-release4 0\ hot-deployhot- deploy热部署目录,是另一个目录。它的组件能够被册除和自动载入、这里没有component-load xm这个文件。本日录中所有的组件,都会在 framework和 application日录下的组件被导入之后导入。runtimeC: javalofbiz-release4.O\runtime现在,让我们进入一个应用程序,看看里面有什么:2008-12-2104;13build2008-12-2104:116,332 build. xml2008-12-2104:102008-12-2104:11data2008-12-2104:11DIR>entitydef2008-12-2104:114, 282 ofbiz-component. xml2008-12-2104:10script2008-12-2104:10servicedef2008-12-2104:11src2008-12-2104:11templates2008-12-2104:11webapp2008-12-2104:10widgetBuild目录是已编译的java代码和仟何Java斥。它们能够使这个应用稈序运行。〈但是不能够仅仅靠它们运行。可以仅靠 webapp目求下的一个或者多个web应用程序运行)build.xm文件是ant文件,用于测试和构建这个应用程序config目录包含配置文件,例如多语言下的国际化UI标签的配置文件data目求包含种子和演示数据,xm格式entitydef目录,包含这个应用程序的数据模型定义。script脚木目录,包含业务逻辑的脚不文什servicedef目,包含 services服务,它们是细粒度的业务逻辑(类似于方法或函数)。src源文件目录,包含实现业务逻辑的Java类文件。webapp目录,是web接口,是应用程序的前端。一个 OFBIZ应用程序能有多个 webapp应用程序Eclipse开发环境的搭建准备工作:1、安装JDK6或以上版本,设置好环境变量JAVA_HOME把% JAVA HOME%bin加入path2、安装 MySQL5.0或以上版本3、在http://www.eclipse.org/downloads/下载最新Eclipse版本,我下的是342版的 Eclipse IdE for Java EE Developers,并解压至工作冂录(我解压至"C:N\",即工作目录为"C: eclipse")OFBiz Eclipse初步设定如果你还没有把obiz导入 Eclipse,请先把 ofbiz导入 Eclipse。操作如下File>New>JavaProject,此时选择 Create Project from Existing Source.注意项日名称随便填个(比如 ofbiz)日录选择你解压后的OFBz目求,c: ofbiz-release40。e New Java ProjectCreate a java projectCreate a java project in the workspace or in an external locatiProject name: ofbiz released. olContentsO Create new proiect in workspaceO Create proiect from existing sourceDirectory: C: Java\ofbiz-release40BrowseJREe Use default TRE(Currently'idk1.6.0)Configure defaultUse a project speci fic REdk1.6.0O Use an execution environment TRE:JavaSE-16Project layoutUse project folder as root for sources and class filese Create separate fol ders for sources and class filesConfigure default,.Working setsL Add proiect to working setsWorkSelThe wizard will automatically configure the jRE and the project layout based on theO specified existing source.〈Bak匚ext> Finish[ CancelG New Java ProjectJava SettingsDefine the java build settings.CB Source B Proiects E Libraries% Order and Export曰。fbiz- elease4.0t-0 framework/testtools/src+- specialpurpose/hhfacility/srcialy+)-C specialpurpose/pos/src+)-C# framework/base/src/start+-@ framework/geronimo/src#-CB applications/accountingsrc -(4 items excluded)+-0 applications/content/src -(2 items excluded)+h-C applications/ecommerce/src出② applications/ manufacturing/srcDetailsB Create new source folder: use this if you want to add a new source fol der to your*RLinkh a bi usedal source: use this if you have a folder in the file system thatshoud as additional source folderP Add proiect ofbiz-release4 0 to build path: Add the project to the build path ifare visible to the compiler and used for building.D Allow output fol ders for source foldersDefault output folder:ofbizrelease4. 0/build0 Browse.< BackNext>□ inish Cancel下一步是使 Eclipse能正确识别你的xm和t,以及.bsh等文件首先,安装 Freemarker的 Eclipse插件.最后,到 Windows> Preferences> General> Editors> File associations点击add"*bsh"并且在 Associate editor.添加他使川 Scrapbooke Preferencestype filter textFile Associationsa GeneralSee Content Types for content-type based file associations由 AppearsFile tCapabilitye/PatchplicationAdd幸.bsh日 Edi torsResmoveo* classFile Associ:团*,critText editor:原*. dat agraphK回*,d+Network Conned曲]*, ecorePerspectives##4. ecore 2ecore为*, ecore2xmlStartup and sr申*,emofWeb browserWelcomeAssociated editorsWorkspaceD Scrapbook ( default)ArAddFreeMarker edi to+.HelpDefaultInstall/Upd主丁OKancel用 OFBiz创建一个完整的应用helo创建一个应用目录结构首先创建如下所示的目录结构applications下的 hello其中 ofbiz-component. xml、 build. xm、 web. xm、 controller:xm几个文件可以从任意一个模块中拷过来,再作些修改日园 ofbiz- release4.0applications-②,sw+-② accountinga b2b± content+-C ecommerceE-C hello岛 build岛data② entitydefe scriptservi cedefsrc+② webappe widgetcobuild.xml自 ofbiz- component.xml+C humanres+C manufacturing十marketing+-C orde② party② product② securi tyext+c workeffort影 build.xml自 component-1aad.xm1buildframeworkt②hot-dep1oy+C runtimespecialpurpose目. classpath自. project目anta ant. bat点pAR? HEADER几个重要文件增加 ofbiz-component. xml
用户评论
码姐姐匿名网友 2020-07-30 21:16:36

原来我已经有,浪费2分,跟网上免费的一样

码姐姐匿名网友 2020-07-30 21:16:36

确实有用,谢谢分享

码姐姐匿名网友 2020-07-30 21:16:36

不错,有用,谢谢您的分享。

码姐姐匿名网友 2020-07-30 21:16:37

的确挺容易上手的,操作有相应的图文介绍。

码姐姐匿名网友 2020-07-30 21:16:37

很不错的资源学习了

码姐姐匿名网友 2020-07-30 21:16:37

感觉有点糊涂

码姐姐匿名网友 2020-07-30 21:16:37

我是初学者,感觉有点糊涂

码姐姐匿名网友 2020-07-30 21:16:37

不错的经典教程,很有指导意义

码姐姐匿名网友 2020-07-30 21:16:38

很好,但是不够深入。

码姐姐匿名网友 2020-07-30 21:16:38

内容清晰,但缺乏有体系的讲解