# spatiotemporal-commons-register **时空开放平台 公用组件-服务自注册** 服务自注册到redis,供其它服务调用 ## 使用方法 * 在工程pom.xml文件添加以下依赖 ```xml cn.spatiotemporal spatiotemporal-commons-register 1.0.0-RELEASE ``` ***注意选择合适的版本*** * 在Application启动类添加`@EnableServerRegister`注解 ```java @EnableServerRegister(autoRegister = true, period = 60) //参数说明: // autoRegister:是否启用服务自注册,false-不启用;true-启用(default true) // period:存续心跳,单位秒。(default 30) ``` ## License 时空开放平台是一个基于[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.html)发布的开源软件。