Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
0b0056bb
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0b0056bb
编写于
9月 17, 2020
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sentinel
上级
8eb7595b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
44 deletion
+10
-44
whatsmars-dubbo/whatsmars-dubbo-consumer-boot/pom.xml
whatsmars-dubbo/whatsmars-dubbo-consumer-boot/pom.xml
+5
-0
whatsmars-dubbo/whatsmars-dubbo-provider-boot/pom.xml
whatsmars-dubbo/whatsmars-dubbo-provider-boot/pom.xml
+2
-3
whatsmars-sentinel/README.md
whatsmars-sentinel/README.md
+1
-0
whatsmars-sentinel/pom.xml
whatsmars-sentinel/pom.xml
+0
-25
whatsmars-sentinel/whatsmars-sentinel-aop/src/main/java/org/hongxi/whatsmars/sentinel/aop/service/TestService.java
...rg/hongxi/whatsmars/sentinel/aop/service/TestService.java
+0
-15
whatsmars-sentinel/whatsmars-sentinel-aop/src/main/java/org/hongxi/whatsmars/sentinel/aop/service/TestServiceImpl.java
...ongxi/whatsmars/sentinel/aop/service/TestServiceImpl.java
+2
-1
未找到文件。
whatsmars-dubbo/whatsmars-dubbo-consumer-boot/pom.xml
浏览文件 @
0b0056bb
...
...
@@ -29,6 +29,11 @@
<artifactId>
whatsmars-dubbo-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-apache-dubbo-adapter
</artifactId>
</dependency>
</dependencies>
<build>
...
...
whatsmars-dubbo/whatsmars-dubbo-provider-boot/pom.xml
浏览文件 @
0b0056bb
...
...
@@ -31,9 +31,8 @@
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-apache-dubbo-adapter
</artifactId>
</dependency>
</dependencies>
...
...
whatsmars-sentinel/README.md
0 → 100644
浏览文件 @
0b0056bb
dubbo sentinel demo 见 whatsmars-dubbo-provider-boot
\ No newline at end of file
whatsmars-sentinel/pom.xml
浏览文件 @
0b0056bb
...
...
@@ -16,31 +16,6 @@
<module>
whatsmars-sentinel-aop
</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-core
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-transport-simple-http
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-spring-webmvc-adapter
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-annotation-aspectj
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
...
...
whatsmars-sentinel/whatsmars-sentinel-aop/src/main/java/org/hongxi/whatsmars/sentinel/aop/service/TestService.java
浏览文件 @
0b0056bb
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.hongxi.whatsmars.sentinel.aop.service
;
public
interface
TestService
{
...
...
whatsmars-sentinel/whatsmars-sentinel-aop/src/main/java/org/hongxi/whatsmars/sentinel/aop/service/TestServiceImpl.java
浏览文件 @
0b0056bb
...
...
@@ -7,7 +7,8 @@ import org.springframework.stereotype.Service;
public
class
TestServiceImpl
implements
TestService
{
@Override
@SentinelResource
(
value
=
"test"
,
blockHandler
=
"handleException"
,
blockHandlerClass
=
{
ExceptionUtils
.
class
})
@SentinelResource
(
value
=
"test"
,
blockHandler
=
"handleException"
,
blockHandlerClass
=
ExceptionUtils
.
class
)
public
void
test
()
{
System
.
out
.
println
(
"Test"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录