Springboot打包成jar包與部署

首先在pom.xml文件中加上這段s  <packaging>jar</packaging> 添加並保存後鼠標右鍵點擊pom.xml->run as->maven install 打包完成後進入cmd  cd 到項目中的target路徑 java -jar 包名.jar運行即可訪問localhost
相關文章
相關標籤/搜索