No service to register for nacos client...

There is a problem with the debugging code
insert image description here
Troubleshoot according to the error report
insert image description here

Finally, after checking
insert image description here
the debugger, it is found that the value obtained by @Value is empty.
After troubleshooting, there is no problem with the configuration of spring.application.name
insert image description here

insert image description here

The investigation found that the project itself added
insert image description here
the bean and the problem was solved.

Guess you like

Origin blog.csdn.net/heroguo007/article/details/119416873