import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigService;


Config config = ConfigService.getConfig(AccessTokenEnum.NAMESPACE.getValue());
if(config == null){
    throw new BusinessException("501", "获取token参数信息异常");
}
String appId = config.getProperty(AccessTokenEnum.APP_ID.getValue(),"");
String secret = config.getProperty(AccessTokenEnum.SECRET.getValue(),"");

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐