SOFAArk 升级 2.0

研发运维困难 由于 Ark Container 先于 Master Biz 启动,Master Biz 的启动入口和 Spring Boot、SOFABoot 不一致,导致 Ark Master Biz 的启动在研发运维中需要定制镜像和启动入口,造成研发运维困难。针对以上问题,蚂蚁集团尝试从框架...

接入Http Client

如果您要接入的应用是Spring Boot/Spring Cloud,具体操作,请参见 接入Spring Boot/Spring Cloud应用。接入OkHttp 若要将OkHttp接入AHAS流量防护,您只需在创建OkHttpClient的时候通过以下方式注册AHAS Sentinel的Interceptor:...

什么是功能开关

功能开关是一个轻量级的动态配置框架,通过功能开关可以动态管理代码中的配置项,根据需求为某个应用开启或关闭部分功能,或设置...使用Spring Boot Starter接入 使用Spring Boot Starter接入 Spring boot类应用专用接入方式,简化接入流程。

如何指定标签

更多信息,请参见 Spring Boot应用接入SchedulerX。spring.schedulerx2.label=gray 步骤一:验证标签注册成功。登录 分布式任务调度平台。在顶部菜单栏选择地域。在左侧导航栏单击 应用管理。在 应用管理 的 操作 列,单击 查看实例。在 ...

Java SDK和Java Agent版本说明

版本说明 本文包含以下Java SDK和Java Agent版本说明:Java SDK AHAS-Sentinel-Client版本说明 Spring-Boot-Starter-AHAS-Sentinel-Client版本说明 Spring-Cloud-Gateway-Starter-AHAS-Sentinel版本说明 Spring-Cloud-Zuul-Starter-AHAS-...

支持组件列表

Spring Boot/Spring Cloud Web应用只需要引入 spring-boot-starter-ahas-sentinel-client 依赖即可接入。Spring Cloud Gateway网关需要引入 spring-cloud-gateway-starter-ahas-sentinel 依赖;Zuul 1.x网关需要引入 spring-cloud-zuul-...

如何指定标签

更多信息,请参见 Spring Boot应用接入SchedulerX。spring.schedulerx2.label=gray 步骤一:验证标签注册成功。登录 分布式任务调度平台。在顶部菜单栏选择地域。在左侧导航栏单击 应用管理。在 应用管理 的 操作 列,单击 查看实例。在 ...

Spring Cloud 使用 SOFARegistry

替换 x.x.x 为该 SDK 最新版本号-><version>x.x.x</version></dependency>说明 sofa-registry-cloud-all SDK 1.2.8 版本同时兼容 Spring Boot 1.x 和 Spring Boot 2.x。根据您的 Spring Cloud 版本信息,引入对应的 Tracer 依赖。Camden、...

如何指定标签

更多信息,请参见 Spring Boot应用接入SchedulerX。spring.schedulerx2.label=gray 步骤一:验证标签注册成功。登录 EDAS控制台。在左侧导航栏单击 任务调度。在顶部菜单栏选择地域。在 应用管理 的 操作 列,单击 查看实例。在 连接实例 ...

配置注入

使用 Spring MVC 注解注入...} } 说明 如果同时在 Spring Boot 应用的 application.properties 和 ACM 的${spring.application.group}:${spring.application.name}.properties 中配置了同一个 key,ACM 中的 value 会覆盖应用默认的 value。

如何指定POM文件构建工程

概述 Spring Boot工程或Maven父子工程在同一个代码仓库中存在多个服务,需要指定POM文件,构建其中的某一个工程。详细信息 请根据您使用的功能选择对应的解决方法。如果是应用构建,可修改构建配置的release文件中的构建命令,在该命令中...

SDK参考概述

注解方式:适用于使用自定义埋点的Spring Boot应用接入、自定义埋点接入和注解接入等方式。Web Servlet Filter:适用于使用HTTP埋点的Spring Boot应用接入和Web应用接入等方式。Dubbo Adapter:适用于Dubbo应用接入方式。配置触发规则后的...

如何手动升级 SOFABoot 管理的第三方 JAR

在使用商业版 SOFABoot 时,可能会...如果想替换开源版 SOFABoot 或 Spring Boot 管理的 JAR,可以重复第 1 步,继续向上寻找 sofaboot-dependencies 的 pom 和 spring-boot-dependencies 的 pom,寻找需要提供的 JAR 对应的版本控制 Key。

properties-属性值获取

说明 一个没有引入任何中间件的 SOFABoot 工程就是一个标准的 Spring Boot 工程。关于 Spring Boot 的学习可以 参考这里。获取 properties 配置信息 通过 mvn 命令生成工程原型后,可以通过下述操作获取 properties 配置的属性:通过@Value...

使用Cloud Toolkit开发Dubbo微服务应用样例工程

Spring BootSpring Boot的版本,如 2.1.5.RELEASE。设置 Project name 和 Project location,然后单击 Finish。创建完成后,可以在IntelliJ IDEA中看到Apache Dubbo样例工程。此样例工程中包含Provider、Consumer和调用的接口。验证...

应用部署时的默认启动命令参数

Tomcat server.tomcat.uri-encoding ISO-8859-1 设置Spring Boot应用Tomcat的uri-encoding编码。Tomcat-server.tomcat.max-threads 400 设置Spring boot应用最大线程池为400。Tomcat java.util.logging.config.file/home/admin/taobao-...

升级相关问题

如何引入 Spring Boot 的 Web 容器 引入 spring-boot-starter-web,默认依赖并启动的 Web 容器是 Tomcat,依赖信息类似如下:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></...

实现对象存储

Spring Boot 1.x版本的生命周期已结束,推荐使用Spring Boot新版本开发您的应用。在 src/main/java 下创建一个package,如 spring.cloud.alicloud.oss。在package spring.cloud.alicloud.oss 下创建 oss-example 的启动类 OssApplication。...

properties-默认

SOFABoot 框架是基于 Spring Boot 的中间件解决方案,其读取配置文件的方法与 Spring Boot 的逻辑相同,SOFABoot 通过 application.properties 文件实现全局配置。properties 配置类型 application.properties 中的键值对 key-value 主要...

接入Dubbo应用

说明 若Dubbo服务是Spring Boot应用,可通过Spring Boot方式快速接入。具体详情,请参见 接入Spring Boot/Spring Cloud应用。添加JAR包依赖。在 Dubbo应用接入 页面单击 请点此链接下载 下载压缩包,并将压缩包中的所有JAR包放置在 ...

如何通过云效进行K8s部署

apiVersion:apps/v1 kind:Deployment metadata:labels:run:spring-boot-sample name:spring-boot-sample spec:replicas:2 selector:matchLabels:run:spring-boot-sample template:metadata:labels:run:spring-boot-sample spec:containers:...

Dubbo 使用 SOFARegistry

引入上文 Spring boot 2.x 相同依赖。在代码中,Main 启动入口第一行加入以下开关:SofaTracerConfiguration.setProperty(SofaTracerConfiguration.JSON_FORMAT_OUTPUT,"false");配置 Dubbo 的注册中心。使用 dsr:。添加应用启动参数。您...

产品优势

基于 SpringBoot 并兼容开源生态 可与 Spring Boot、Spring 工程无缝集成,降低用户的迁移成本。原生云工程结构 满足原生云应用的十二个因素,具备快速开发,持续交付和部署服务,弹性扩展,故障隔离、自动恢复等特点。集成全套金融级...

代码开发概述

事件请求处理程序 PHP Go Node.js Python Ruby C++ TypeScript Powershell Lua Dart Rust HTTP请求处理程序 Python C++ Spring Boot F#Custom Container 以下为多语言使用示例。更多信息,请参见 Custom Container简介。事件请求处理程序 ...

使用Spring Boot Starter接入

本文将帮助您了解如何使用Spring Boot Starter接入。操作步骤 登录 AHAS控制台,然后在页面左上角选择 地域。在左侧导航栏单击 功能开关,然后在页面右上角单击 新应用接入。可选:在 新应用接入 页面查看并保存License。说明 仅公网环境接...

将Dubbo应用平滑迁移到EDAS

service-registry=edas:/127.0.0.1:8080,zookeeper:/172.31.XX.XX:2181&reference-registry=zookeeper:/172.31.XX.XX:2181&config-address=127.0.0.1:8848 如果是非Spring Boot应用,在 dubbo.properties 或者对应的Spring配置文件中配置。...

使用Prometheus监控MicroMeter的Java应用

这里以目前最常用的 Spring Boot 2.x 应用为例介绍。步骤一:将Spring Boot Actuator加入Java应用 在Project的pom.xml中添加 Actuator 依赖。groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-...

使用Prometheus监控MicroMeter的Java应用

这里以目前最常用的 Spring Boot 2.x 应用为例介绍。步骤一:将Spring Boot Actuator加入Java应用 在Project的pom.xml中添加 Actuator 依赖。groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-...

超时控制

Spring 环境 API 方式 如果在 Spring 或者 Spring Boot 的环境下引用服务,设置 BoltBindingParam 的 timeout 属性的值即可。BoltBindingParam boltBindingParam=new BoltBindingParam();boltBindingParam.setTimeout(2000)非 Spring 环境...

接入应用方式

SDK接入 包括以下接入方式:Spring Boot/Spring Cloud应用 Spring应用 Dubbo应用 Web应用 自定义埋点 K8s接入 AHAS与容器服务Kubernetes版数据互通,因此容器服务Kubernetes版中的应用可以快速接入AHAS应用防护。SAE接入 对于在Serverless...

搭建服务网关

groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.4.RELEASE</version><relativePath/></parent><dependencies><dependency><groupId>org.springframework.cloud...

搭建服务网关

groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.4.RELEASE</version><relativePath/></parent><dependencies><dependency><groupId>org.springframework.cloud...

版本说明

Spring Boot 2.7.x 版本的功能与变更说明,请参见 SpringBoot 2.7.15 及 Spring Boot 2.7 Release Notes。随着 Spring Boot 升级,Spring Cloud 依赖也需要相应升级至兼容版本 2021.0.x,详情请参见 Spring Cloud reference。自 SOFABoot 3...

Bolt 协议的基本用法

Service@SofaService(bindings={@SofaServiceBinding(bindingType="bolt")})public class SampleServiceImpl implements SampleService{ } Spring 环境下 API 方式 在 Spring 或者 Spring Boot 环境下发布一个 Bolt 协议的服务只需往 ...

概述

SOFABoot SOFABoot 是蚂蚁科技基于 Spring Boot 自研的开发框架,不仅在 Spring Boot 的基础上进行了能力增强,还提供了 SOFA 中间件的轻量集成,让每一个中间件成为一个可插拔的组件。开发者在集成了 SOFABoot 框架后,只需引入对应中间件...

依赖与配置项

spring boot and spring dependencies begin-><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-autoconfigure</artifactId></dependency>!logback-><dependency><groupId>org.springframework.boot...

Nacos Spring Cloud

Spring Cloud Version Spring Cloud Alibaba Version Spring Boot Version Spring Cloud Hoxton 2.2.0.RELEASE 2.2.X.RELEASE Spring Cloud Greenwich 2.1.1.RELEASE 2.1.X.RELEASE Spring Cloud Finchley 2.0.1.RELEASE 2.0.X.RELEASE ...

版本说明

1.0.6-j180t2114 JDK 8 健康检查功能兼容 Spring Boot 2.0。修复健康检查脚本问题。1.0.5-j180t2114 JDK 8 扩展同城双活能力,增加 DataCenter 和 Cell 单独读取并设置到系统属性的能力。发布部署平台检查应用启动期成功与否的状态时,应用...

中间件产品总览

SOFA 中间件包含如下产品:SOFABoot 基于 Spring Boot 自研的开发框架 集成 SOFA 中间件,且中间件可插拔 服务网格 将传统微服务和 Service Mesh 进行融合 对接经典应用服务和容器应用服务 提供丰富的服务治理功能 消息队列 基于 Apache ...

接入HSF应用

若是Spring Boot应用,则可以通过starter方式接入。在pom.xml中引入以下依赖:<dependency><groupId>com.alibaba.csp</groupId> <artifactId>spring-boot-starter-ahas-sentinel-client</artifactId> <!需指定版本号,需要≥1.7.2版本。最新...
共有31条 < 1 2 3 4 ... 31 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
Serverless 应用引擎 全局事务服务 (文档停止维护) 企业级分布式应用服务 金融分布式架构 弹性公网IP 短信服务
新人特惠 爆款特惠 最新活动 免费试用