代码如下:
public static void main(String[] args) throws IOException, SQLException {
ConfigurableApplicationContext application = SpringApplication.run(ServiceApplication.class, args);
String port = application.getEnvironment().getProperty("server.port");
Runtime runtime = Runtime.getRuntime();
runtime.exec("rundll32 url.dll,FileProtocolHandler "+"http://localhost:"+port+"/table/errorInfo");
}