Skip to content

Commit

Permalink
Merge pull request #10 from SpringCloud/develop
Browse files Browse the repository at this point in the history
接入skywalking的URL优化到YML文件中
  • Loading branch information
SoftwareKing authored Apr 22, 2019
2 parents d877946 + 9355d49 commit 75a2501
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class AppServiceImpl implements AppService {

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

@Value("${moss.skywalking.url}")
private String skyWalKing_Url;

@Autowired
private AppMapper appMapper;

Expand Down Expand Up @@ -129,7 +132,7 @@ public void update(AppModel appModel) {
public ResultData getTraceTopology(String appName) {
ResultData resultData = ResultData.builder().build();
//Skywalking的URL
String traceBaseUrl = "";
String traceBaseUrl = skyWalKing_Url;
//查询出SkyWalking中的所有应用信息
List<Application> applications = findAllApplications(traceBaseUrl);
String targetApplicationId = null;
Expand Down
2 changes: 2 additions & 0 deletions moss-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ info.version: @project.version@
#management.jolokia.enabled: true
management.endpoints.health.show-details: true

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

0 comments on commit 75a2501

Please sign in to comment.