package com.xf.mymark; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.stereotype.Component; @Component public class StartCallBack implements ApplicationRunner { @Value("${server.port}") private String port; @Override public void run(ApplicationArguments args) throws Exception { try { Runtime.getRuntime().exec("explorer http://localhost:"+port+"/"); }catch (Exception e){ } } }
最近下载更多
Seaskye LV14
2023年11月4日
笑得很美 LV11
2023年10月12日
DeanYao LV2
2023年10月11日
1483259138 LV1
2023年9月18日
最代码官方 LV167
2023年9月16日
最近浏览更多
hmf1989
4月30日
暂无贡献等级
kenhomeliu LV29
4月30日
微信网友_6957774974095360 LV1
4月19日
lo8lukoukoum LV4
4月11日
玖零定制问题修复 LV34
4月4日
阿时23428 LV15
3月23日
chenlie LV2
3月18日
wanglinddad LV55
3月13日
quartz LV7
3月13日
Iterman LV2
3月12日