package com.example.demo.controller;
import java.io.IOException;
public class test {
public static void goToTaobao(){
// 打开淘宝浏览器
String url = "
https://www.taobao.com/";
try {
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url));
} catch (IOException e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
goToTaobao();
}
}