The eureka service can only be set to 8761, otherwise the service cannot be registered

I wrote an eureka service, and the port number can only be 8761. Otherwise, the client cannot register the service, but an eureka service with a port number other than 8761 can open the home page of eureka.
is very difficult to understand. Ask the great gods for advice.
is the configuration file for my eureka service, as shown in the figure below. As long as it is a port other than 8761, the service cannot be registered.

clipboard.png

Mar.16,2021

client registration should be written like this. DefaultZone cannot be default-zone or the default port 8761 will be used if it is not recognized.

eureka: 
  client: 
    service-url: 
      defaultZone: http://localhost:8861/eureka/

I have the same problem. Rookie Xiaobai says that he has been cheated all afternoon


mine can only specify 8761, but nothing else. Have you found a solution?


Sorry, everyone, the update is late, and the problem has been solved. The reason is that my eureka server and eureka client are under the same project, but belong to different modules. So there are the above problems. It would be nice to have separate projects.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-4a02f09-13038.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-4a02f09-13038.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?