Skip to content

Nacos

使用注意事项和总结

动态刷新配置

@RefreshScope

@RefreshScope是Spring Cloud 提供的注解,可以看到它就是通过Spring 的作用域来实现的。

@NacosValue

@NacosValue Spring Cloud并不能直接使用,只是为了在纯Spring 环境中方便集成配置中心,Spring Cloud环境下使用其本身推荐的方式。并不推荐使用