java.lang.IllegalStateException: No instances available for SPRINGCLOUDTEST-PROVIDER-DEPT解决

java.lang.IllegalStateException: No instances available for SPRINGCLOUDTEST-PROVIDER-DEPT解决方法

  • Estimated encountered similar problems this picture below, are the SpringCloud read online tutorials to integrate a custom Ribbon load balancing algorithms class.
    Here Insert Picture Description

  • Solution:
    The following is the original startup class (consumer port 80) Here Insert Picture Description
    to @RibbonClientannotation nameattributes lowercase form name=myspringcloudtest-provider-dept(if it is in accordance with some tutorials online, you may need to be changed springcloudtest-provider-dept, according to their own in the producer micro-services of application.xmlconfiguration spring.application.nameproperties to modify)
    modified as shown below: then restart

    Here Insert Picture Description

Published 60 original articles · won praise 6 · views 5506

Guess you like

Origin blog.csdn.net/Ashiamd/article/details/104096878