Skip to content

Commit 75a2501

Browse files
authored
Merge pull request #10 from SpringCloud/develop
接入skywalking的URL优化到YML文件中
2 parents d877946 + 9355d49 commit 75a2501

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

moss-service/src/main/java/org/xujin/moss/service/impl/AppServiceImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public class AppServiceImpl implements AppService {
4848

4949
private static final Log log = LogFactory.getLog(AppServiceImpl.class);
5050

51+
@Value("${moss.skywalking.url}")
52+
private String skyWalKing_Url;
53+
5154
@Autowired
5255
private AppMapper appMapper;
5356

@@ -129,7 +132,7 @@ public void update(AppModel appModel) {
129132
public ResultData getTraceTopology(String appName) {
130133
ResultData resultData = ResultData.builder().build();
131134
//Skywalking的URL
132-
String traceBaseUrl = "";
135+
String traceBaseUrl = skyWalKing_Url;
133136
//查询出SkyWalking中的所有应用信息
134137
List<Application> applications = findAllApplications(traceBaseUrl);
135138
String targetApplicationId = null;

moss-web/src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ info.version: @project.version@
4444
#management.jolokia.enabled: true
4545
management.endpoints.health.show-details: true
4646

47+
### 替换成自己的skywalking URL
48+
moss.skywalking.url: http://skywalking.com

0 commit comments

Comments
 (0)