File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
moss-service/src/main/java/org/xujin/moss/service/impl
moss-web/src/main/resources Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ public class AppServiceImpl implements AppService {
48
48
49
49
private static final Log log = LogFactory .getLog (AppServiceImpl .class );
50
50
51
+ @ Value ("${moss.skywalking.url}" )
52
+ private String skyWalKing_Url ;
53
+
51
54
@ Autowired
52
55
private AppMapper appMapper ;
53
56
@@ -129,7 +132,7 @@ public void update(AppModel appModel) {
129
132
public ResultData getTraceTopology (String appName ) {
130
133
ResultData resultData = ResultData .builder ().build ();
131
134
//Skywalking的URL
132
- String traceBaseUrl = "" ;
135
+ String traceBaseUrl = skyWalKing_Url ;
133
136
//查询出SkyWalking中的所有应用信息
134
137
List <Application > applications = findAllApplications (traceBaseUrl );
135
138
String targetApplicationId = null ;
Original file line number Diff line number Diff line change @@ -44,3 +44,5 @@ info.version: @project.version@
44
44
# management.jolokia.enabled: true
45
45
management.endpoints.health.show-details : true
46
46
47
+ # ## 替换成自己的skywalking URL
48
+ moss.skywalking.url : http://skywalking.com
You can’t perform that action at this time.
0 commit comments