Coder Social home page Coder Social logo

Comments (3)

ljinshuan avatar ljinshuan commented on May 5, 2024

问题一 jar的升级升级过程中应该保持接口兼容,如果不兼容那么老的代码依赖了0.3 引入了不兼容的0.4会导致老代码无法运行成功。 如果非要解可以指定不同的微服务加载不同文件夹下单jar包,参考tomcat的类隔离机制,但是这会导致tac变得更加复杂。

问题二 没有明白,可否描述详细一点?

from tac.

destinym avatar destinym commented on May 5, 2024

问题一,对兼容性的要求要比较高。最好是后面版本兼容前面版本,容器只是用最新版本。
问题二,举个例子,我在jar包中使用spring boot框架,生成一个@bean, 通过@Autowired注入,代码本身可以运行,但是jar包放到container里面,肯定是没法运行的。
这个时候我该怎么处理?第一是container里面增加configure的路径,然后重启, 第二,修改container的spring框架,能够动态加载jar包中的bean。 不知道我这么理解正确么?

from tac.

ljinshuan avatar ljinshuan commented on May 5, 2024

可以的

from tac.

Related Issues (8)

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.