想学学spring建立网站,开始看《Spring in Action》,但在最后一章才说在书该出版时,出现了spring boot,要是早知道就会第一章介绍它。我去,走了这么一大段弯路!赶紧找来《Spring boot in Action》。由于我用的是eclipse,所以经过摸索和网上查询,以及自己试验。搞清楚了如下步骤:
1 在eclipse上安装spring tool suite插件:
网址:http://spring.io/tools/sts 现在是tools4,我下载的是tools3。
安装sts,请参考:https://blog.csdn.net/sinat_32366329/article/details/82731198
2 安装Spring Boot CLI: 这是spring boot command line interface,就是eclipse或者命令行执行spring boot的命令时,必需的组件。
下载地址:http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/
需要注意:下载什么版本,需要看spring tool suite在界面上供选择选项。开始我贸然下载了spring-boot-cli-2.2.2.RELEASE-bin.zip,但后来在sts界面选项中并没有它,只有2.2.4版本的。所以我只好又重新下载。所以可以先操作3 在esl