检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
5CacheConfig数据结构说明。 cache-consecutive-exception-times:记录缓存连续失败的次数上限(此上限是针对配置的一个缓存策略,devspore.client-control.caches.xxx)(读失败,写失败都会累加这个次数,当调用读成功或写成功一次后,会将这个参数置
redis缓存不存在的属性反序列化 问题描述 redis在存入的时候,如果对象中存在is开头的方法,但是又没有具体的属性。那么在存入的时候,会将auth转换为一个属性存入缓存当中,在反序列化的时候就会报反序列化失败。 public boolean isAuth(){ return
2.1.7.JDK17-RELEASE之前版本开启重试功能概率性报错 问题描述 2.1.7.JDK17-RELEASE之前版本开启重试功能时,有概率会报“The reuqest object has been recycled and is no longer associated
DevSpore-SDK使用指南 devspore-auth使用指南 devspore-security使用指南 devspore-probe使用指南 devspore-clientcontrol使用指南 spring-boot-huawei使用指南 AstroPro-SDK版本变更与下载
spring-boot-huawei使用指南 spring-boot-huawei使用概述 使用指南 配置说明 父主题: DevSpore-SDK使用指南
初次发布。 表13 devspore-generator版本变更 开发语言 包含的模块 版本及下载地址 变更描述 Java devspore-core devspore-generator devspore-horizon devspore-metadata devspore-parent
配置说明 日志配置 使用swagger进行在线API文档配置 父主题: spring-boot-huawei使用指南
使用指南 使用spring-boot-huawei组件 使用spring-boot-starter-huawei组件 组件纳管的依赖包和版本 父主题: spring-boot-huawei使用指南
spring-boot-huawei使用概述 开发简介 本SDK旨在简化基于spring-boot的项目开发时,对于开发环境依赖jar包的管理问题。 开发能力要求 您需具备以下开发能力: 熟悉Java语言,并有Java程序开发经验。 熟悉Maven。 基础开发环境准备 安装的工具
日志配置 spring-boot-starter-huawei中默认使用slf4j作为日志门面,log4j2作为日志实现框架。 当项目中的依赖可能存在有关logback日志框架的时候需要将其排除,否则可能会有spring-boot-starter-huawei中配置的slf4j(
authorization; import com.huawei.devspore.horizon.DataEvent; import com.huawei.devspore.horizon.Operation; import com.huawei.devspore.horizon.exception.PluginException;
行于Web容器中。 性能测试。 注意:性能测试配置为Astro Pro专业版/企业版功能,如果您需要使用此功能,请升级Astro Pro实例版本。 图6 性能测试 CodeArts性能测试:是否使用CodeArts PerfTest进行性能测试。性能测试CodeArts Perf
<properties> <dependencies> <dependency> <groupId>com.huawei.devspore</groupId> <artifactId>spring-boot-starter-huawei</artifactId>
<properties> <dependencies> <dependency> <groupId>com.huawei.devspore</groupId> <artifactId>spring-boot-starter-huawei</artifactId>
组件纳管的依赖包和版本 组件纳管的依赖包 spring-boot-starter-huawei包含的依赖包(代码中pom可不引入相关依赖)。 表1 spring-boot-starter-huawei包含的依赖包 包名groupId:artifactId 备注 org.sprin
import com.huawei.devspore.horizon.DataEvent; import com.huawei.devspore.horizon.exception.PluginException; import com.huawei.devspore.horizon.processor
使用swagger进行在线API文档配置 文档配置 spring-boot-starter-huawei添加了swagger2和swagger3包的依赖,API在线文档使用springdoc-openapi-ui。springdoc基本配置较为简单,如下所示: springdoc:
@Extension介绍 devspore-horizon是devspore提供的对metaBO(以及对应的RO)操作前鉴权、认证,metaBO变动后消息发送、审计等功能的组件。配置horizon后,generator生成的项目的repository中相关操作上会带有@Extension注解。
出com.huaweicloud.devspore.auth.commons.exception.DevsporeAuthException,也可使用用户自定义异常。 UserStore接口介绍 package com.huawei.devspore.plugin.spi.authentication;
框架配置 设置服务的架构、数据库、缓存和安全认证等信息,请根据实际业务直接在界面进行勾选。 生成策略 设置服务的API、代码风格、部署和性能测试等信息,请根据实际业务直接在界面进行勾选。 业务设计 基本配置、框架配置和生成策略需要用户根据自身业务的实际情况进行配置,配置不同生成的效