Generate configDataContextRefres Error: Error creating bean with name ‘configDataContextRefresher‘

I have been tortured by this problem for a long time. My solution is as follows. I advise you to read the official documents that should be read, but don’t do it foolishly
first write bootstrap.properties, and then write in the following:

these basic configurations

Then check whether you have introduced this dependency:

I read the error message. One of the error messages is springcloud context. After reading it for a long time, I think I should not have introduced it. However, I see a saying that it is useless to introduce context dependency in the version after 2020. It is necessary to quote the dependency in the above figure to read the configuration of Nacos from here.

Finally, the versions of boot and cloud are posted, and the pro test can run:


Read More: