• 95zz.com | 95zz.com唯一官网

  • 发布时间:2016-01-20 12:39 | 作者:yc | 来源:互联网 | 浏览:1200 次
  • 95zz.com | 95zz.com唯一官网

    这篇文章为《根据Dubbo的散播式体系架构视频教程》的课程系列文档,更多课程信息,请注重:http://www.roncoo.com

    Dubbo视频教程--根底篇--第07节--运用Maven构建Dubbo效劳的可运转jar包

    一、Dubbo效劳的运转法子:

    1、运用Servlet容器运转(Tomcat、Jetty等)----弗成取

    毛病:添加繁杂性(端口、解决)

    挥霍资本(内存)

    2、自建Main法子类来运转(Spring容器)----不主张(本地调试可用)

    毛病: Dobbo自身提供的高级特点没用上

    自已编写发动类大概会有毛病

    3、运用Dubbo布局提供的Main法子类来运转(Spring容器)----主张运用

    长处:布局自身提供(com.alibaba.dubbo.container.Main)

    可完成雅致关机(ShutdownHook)

    二、打包用的Maven pom.xml

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    4.0.0

    wusc.edu.common

    edu-common-parent

    1.0-SNAPSHOT

    ../edu-common-parent

    wusc.edu.service

    edu-service-user

    ${edu-service-user.version}

    jar

    edu-service-user

    http://maven.apache.org

    UTF-8

    debug

    debug

    edu-service-user

    ${project.build.directory}/classes

    src/main/resources

    true

    **/*.xml

    **/*.properties

    ${project.build.directory}/classes/META-INF/spring

    src/main/resources/spring

    true

    spring-context.xml

    org.eclipse.m2e

    lifecycle-mapping

    1.0.0

    org.apache.maven.plugins

    maven-dependency-plugin

    [2.0,)

    copy-dependencies

    org.apache.maven.plugins

    maven-jar-plugin

    target/classes/

    com.alibaba.dubbo.container.Main

    false

    true

    lib/

    .

    org.apache.maven.plugins

    ma博天堂娱乐ven-dependency-plugin

    copy-dependencies

    package

    copy-dependencies

    jar

    jar

    false

    ${project.build.directory}/lib

    wusc.edu.common

    edu-common

    ${edu-common.version}

    wusc.edu.common

    edu-common-config

    ${edu-common-config.version}

    wusc.edu.common

    edu-common-core

    ${edu-common-core.version}

    wusc.edu.facade

    edu-facade-user

    ${edu-facade-user.version}

    antlr

    antlr

    aopalliance

    aopalliance

    95zz.com | 95zz.com唯一官网

    org.aspectj

    aspectjweaver

    cglib

    cglib

    net.sf.json-lib

    json-lib

    jdk15

    compile

    ognl

    ognl

    oro

    oro

    commons-beanutils

    commons-beanutils

    commons-codec

    commons-codec

    commons-collections

    commons-collections

    commons-digester

    commons-digester

    commons-fileupload

    commons-fileupload

    commons-io

    commons-io

    org.apache.commons

    commons-lang3

    commons-logging

    commons-logging

    commons-validator

    commons-validator

    dom4j

    dom4j

    net.sf.ezmorph

    ezmorph

    javassist

    javassist

    jstl

    jstl

    javax.transaction

    jta

    log4j

    log4j

    org.slf4j

    slf4j-api

    org.slf4j

    slf4j-log4j12

    org.springframework

    spring-aop

    org.springframework

    spring-aspects

    org.springframework

    spring-beans

    org.springframework

    spring-context

    org.springframework

    spring-context-support

    org.springframework

    spring-core

    org.springframework

    swww.8222.compring-expression

    org.springframework

    spring-instrument

    org.springframework

    spring-instrument-tomcat

    org.springframework

    spring-jdbc

    org.springframework

    spring-jms

    org.springframework

    spring-orm

    org.springframework

    spring-oxm

    org.springframework

    spring-struts

    org.springframework

    spring-test

    test

    org.springframework

    spring-tx

    org.springframework

    95zz.com | 95zz.com唯一官网

    spring-web

    org.springframework

    spring-webmvc

    org.springframework

    spring-webmvc-portlet

    org.mybatis

    mybatis

    org.mybatis

    mybatis-spring

    org.apache.struts

    struts2-json-plugin

    org.apache.struts

    struts2-convention-plugin

    org.apache.struts

    struts2-core

    org.apache.struts

    struts2-spring-plugin

    org.apache.struts.xwork

    xwork-core

    org.apache.tomcat

    servlet-api

    provided

    org.apache.tomcat

    jsp-api

    provided

    com.alibaba

    druid

    org.jsoup

    jsoup

    mysql

    mysql-connector-java

    org.jboss.netty

    netty

    com.alibaba

    dubbo

    org.springframework

    spring

    org.apache.zookeeper

    zookeeper

    com.101tec

    zkclient

    具体打包进程请看视频内容,更多课程信息请注重Dubbo视频教程官网:http://www.roncoo.com

    这篇文章出自 “瓜熟蒂落” 博客,请必须保存此出处http://wushuicheng.blog.51cto.com//

  • 相关内容

友情链接: