threeperson博客园 IT技术、互联网技术、Java技术分享

springboot 配置文件运行时更新

项目上线后,经常需要更新配置。springboot下配置默认加载后无法做到运行时更新。不过springcloud里提供了刷新 支持。 ##相关依赖Spring actuator,Spring cloud starter ``` <dependency> <groupId>org.springfram

threeperson threeperson 发布于 2020-10-17

springcloud 服务上下线

通过eureka设置微服务上线,下线。 ``` //method=PUT //url = http://name:password@eureka-server-ip:eureka-server-port/eureka/apps/SERVER-NAME/SERVER-IP:SERVER-PORT/st

threeperson threeperson 发布于 2019-01-29