Giter Club home page Giter Club logo

Comments (7)

hank-cp avatar hank-cp commented on July 17, 2024

Plugin shouldn't have been register to eureka as one of the hosts. Anything plugin needs from external, should be injected by the main app, who is in charge of interacting with other service throw Spring Cloud stuffs.

Could you please post the complete logs/configs or create a repo to reproduce this?

from sbp.

syifarahmat avatar syifarahmat commented on July 17, 2024

Thanks.... this is my config core/main app with eureka and & plugin withaut eureka
https://github.com/syifarahmat/pluginnable/tree/master

from sbp.

hank-cp avatar hank-cp commented on July 17, 2024

Hi, see your repo. I am sorry that I cannot figure where the problem is with just some few configuration files.

If you feel difficult to create a runnable project to reproduce this issue, could you at least provide a complete startup log instead?

from sbp.

syifarahmat avatar syifarahmat commented on July 17, 2024

I have reuploaded the project simply.
https://github.com/syifarahmat/pluginnable
I use OpenJDK 11
The Jhipster registry and its configuration are in the release folder. you can see the file.cmd how do I load the config.
My main obstacle is why I have to force the eureka config set for each plugin ... ??
This causes the application to register twice with the jhipster registry SS:
image

Thanks a lot.

from sbp.

hank-cp avatar hank-cp commented on July 17, 2024

Looks like your are referring eureka libs from your dependencies tree.

Basically Spring Cloud stuffs shouldn't exist in any classpath, otherwise they will trigger Spring Boot auto configuration, even though you do not mean to play with them.

Try close eureka explictly by adding follow to /plugins/pluginone/src/main/resources/application.yml:

  eureka:
    instance:
      hostname: localhost
    client:
      registerWithEureka: false
      fetchRegistry: false

or re-planning your depnedencies tree...

from sbp.

syifarahmat avatar syifarahmat commented on July 17, 2024

Thanks..... 🙏🙏🙏
I will try...

from sbp.

hank-cp avatar hank-cp commented on July 17, 2024

u r welcome. I am closing this issue.

from sbp.

Related Issues (20)

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.