Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Release/1.29 hoxton higher #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LilyJlLm wants to merge 9 commits into release/1.23-greenwich
base: release/1.23-greenwich
Choose a base branch
Loading
from release/1.29-hoxton-higher
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
9 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pom.xml 中定义了工程需要的依赖包(以下以基于 Spring Cloud Gree
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion consumer-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<artifactId>consumer-demo</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ScheduledProviderDemo {
@Autowired
private ProviderDemoService providerDemoService;

@Scheduled(fixedDelayString = "${consumer.auto.test.interval:1000}")
@Scheduled(fixedDelayString = "${consumer.auto.test.interval:500}")
public void doWork() throws InterruptedException {
TsfContext.putTag("test", "123");
TsfContext.putCustomMetadata(new CustomMetadata("test", "123"));
Expand Down
2 changes: 2 additions & 0 deletions consumer-demo/src/main/resources/bootstrap.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tsf_namespace_id: default_namespace

#方便本地自测调试
tsf:
sleuth:
samplerRate: 0.1
circuit-breaker:
rules:
- targetServiceName: provider-demo
Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/kafka-consumer/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/kafka-producer/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion kafka-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mongodb-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>mongodb-demo</artifactId>
Expand Down
19 changes: 17 additions & 2 deletions msgw-demo/msgw-scg/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>msgw-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -17,5 +17,20 @@
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-msgw-scg</artifactId>
</dependency>
<!--TSF 其它 SDK 依赖,添加到 msgw-scg 依赖的后面-->
<dependency>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<exclusion>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-swagger</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
</project>
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package com.tencent.tsf.msgw.scg;

import com.tencent.tsf.monitor.annotation.EnableTsfMonitor;
import com.tencent.tsf.sleuth.annotation.EnableTsfSleuth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.tsf.annotation.EnableTsf;

/**
* @author seanlxliu
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableTsfSleuth
@EnableTsfMonitor
@EnableTsf
public class Application {

public static void main(String[] args) {
Expand Down
View file Open in desktop

This file was deleted.

5 changes: 3 additions & 2 deletions msgw-demo/msgw-scg/src/main/resources/application.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spring:
scheme: HTTP

logging:
file: /tsf-demo-logs/${spring.application.name}/root.log
level:
root: INFO
root: INFO
file:
name: /tsf-demo-logs/${spring.application.name}/root.log
2 changes: 1 addition & 1 deletion msgw-demo/msgw-zuul1/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>msgw-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
View file Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletion msgw-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion mysql-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>mysql-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion opensource-scg-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion opensource-zuul-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<artifactId>opensource-zuul-demo</artifactId>

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-dependencies</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion provider-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>provider-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion redis-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>tsf-demo</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>

<artifactId>redis-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tsf-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/rocketmq-consumer/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>rocketmq-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion rocketmq-demo/rocketmq-producer/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>rocketmq-demo</artifactId>
<groupId>com.tencent.tsf</groupId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion task-schedule-demo/pom.xml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tencent.tsf</groupId>
<artifactId>spring-cloud-tsf-parent</artifactId>
<version>1.23.0-Greenwich-RELEASE</version>
<version>1.29.21-Hoxton-Higher-RELEASE</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

AltStyle によって変換されたページ (->オリジナル) /