@SpringBootApplication public class SpringBootApplication { public static void main(String[] args) { SpringApplication.run(SpringBootApplication.class, args); try { Runtime.getRuntime().exec("cmd /c start http://localhost:8080/"); } catch (Exception e) { e.printStackTrace(); } } }
OK!分享一波用法!不会的给我私信或者回复留言!
觉得有帮助的可以关注一波!经常分享编程踩坑经验!