官术网_书友最值得收藏!

Running the Maven build from IDE

All popular IDEs, such as Eclipse, Netbeans, and IntelliJ IDEA, support Java 11 and Spring. You can use any of the preferred IDEs having Java 11 support.

Here, we use the Maven executable to package the generated JAR file. The steps for this are as follows:

  1. Right-click on the pom.xml file for Eclipse/NetBeans IDE. For IntelliJ, use the Run menu.
  2. For NetBeans, select Run Maven | Goals... from the pop-up menu. It will open the dialog. Type spring-boot:run in the Goals field. We have used the released version of Spring Boot in the code. However, if you are using the snapshot release, you can check the Update Snapshots checkbox. To use it in the future, type spring-boot-run in the Remember as field. For Eclipse/IntelliJ IDEA, use the respective fields.

 

  1. Next time, you could directly click Run | Maven | Goals | spring-boot-run to execute the project or on the basis of a similar option in the respective IDE:
Run Maven dialog
  1. Click OK to execute the project.
主站蜘蛛池模板: 迁西县| 清苑县| 梁山县| 横山县| 项城市| 苏尼特左旗| 富蕴县| 汉源县| 天水市| 南陵县| 青川县| 中宁县| 江西省| 红原县| 白河县| 寿光市| 获嘉县| 蓬溪县| 贺兰县| 赣榆县| 望城县| 扶余县| 镇江市| 鸡西市| 鲁山县| 方城县| 洪洞县| 宝山区| 苏州市| 错那县| 剑阁县| 铜鼓县| 清水河县| 新乡市| 德惠市| 且末县| 通河县| 昌都县| 永顺县| 嵊泗县| 河间市|