Spring Boot入门 ╰+哭是因爲堅強的太久メ 2022-06-15 05:23 182阅读 0赞 ### 以[Uploading Files][] 这个工程为例,我们从GIT从克隆下代码或者直接下载zip文件。 ### ### Download and unzip the source repository for this guide, or clone it using Git: git clone [https://github.com/spring-guides/gs-uploading-files.git][https_github.com_spring-guides_gs-uploading-files.git] ### ### 你可以直接通过下面的命令直接看运行效果 ### mvnw spring-boot:run. ### 就像下面这样(注意,直接cd到complete目录,可以直接运行) ### ![这里写图片描述][SouthEast] ### 当然也可以将这个工程转换为Eclipse Project,通过下面的命令 ### mvn eclipse:eclipse ![这里写图片描述][SouthEast 1] ### 然后,将工程Import到Eclipse中(注意,还是在cd到complete目录,当然了,想亲自动手一步一步操作的话,cd到initial目录,参照[Create an Application class][]) ### ### 导入到Eclipse之后,直接运行,效果如下: ### ![这里写图片描述][SouthEast 2] [Uploading Files]: https://spring.io/guides/gs/uploading-files/ [https_github.com_spring-guides_gs-uploading-files.git]: https://github.com/spring-guides/gs-uploading-files.git [SouthEast]: /images/20220615/1098f65f94384e2cb5779b64a433dc35.png [SouthEast 1]: /images/20220615/4781084e60c44005af8502721ef4b8b5.png [Create an Application class]: https://spring.io/guides/gs/uploading-files/#initial [SouthEast 2]: /images/20220615/bca85d1b20a64331bb0318482c9b1b0d.png
还没有评论,来说两句吧...