Coder Social home page Coder Social logo

migration-system-eureka-server's People

Contributors

templarjq avatar

Watchers

 avatar  avatar

migration-system-eureka-server's Issues

[Code] - 服务端代码设计需求(v1)

主要功能需求

  1. 服务检测模块:负责登记服务的上传接口信息,并检测服务的信息,本服务单元将主机、端口号、版本号和通信协议等附加信息告知注册中心时,按服务名分类组织清单
    注:服务的组织形式是什么,按照名称区分服务还是增加一个转化模块去设计。
  2. 服务调度模块:主要能够维护用户的迁移顺序和路径,及时感知用户的迁移请求和迁移中间的方向问题,并且实时监控节点的服务压力,做权重计算加入考量。同时针对乒乓迁移等问题维护主要的迁移信息模块来对服务是否进行迁移授权;
  3. 服务总线的广播机制,针对关键迁移信息的发布,以及对于服务的升级降级都有合适的解释,优先调度优先级最高的服务和优先级最高的节点信息;

模块设计初步

  1. 服务调度模块:主要负责服务的信息组织和节点上服务的迁移过程;
  2. 服务注册模块:接收服务客户端的服务请求并维护关键节点信息的中心;

[IDEA] - “Exception starting filter servletContainer”导致servletContainer启动错误

异常和解决方法

  • 异常形式
    java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present

  • 解决方法
    java9+版本以后,JAXB默认没有加载。
    JAXB代表用于XML绑定的Java体系结构。它用于将XML转换为java对象,并将java对象转换为XML。JAXB定义了一个用于在XML文档中读写Java对象的API。
    JAXB功能链接

在pom中加入:

        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jaxb</groupId>
            <artifactId>jaxb-runtime</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
            <version>1.1.1</version>
        </dependency>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.