- 设置网络

2、设置maven
3、new -->Spring Starter Project
Service Url :https://start.aliyun.com/
4、

5、

6、修改pom

7、手工引入不能下载的jar包
12.2.0.1 - JDBC and UCP Download Page

8、学习springboot中遇到在controller层中不能使用@RestController注解
解决方案:
在pom.xml文档中缺少以下依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
删掉数据仓库重新更新
SpringBoot项目搭建与问题解决

本文档介绍了如何从零开始设置SpringBoot项目,包括选择ServiceUrl、配置Maven、创建Spring Starter Project,以及在遇到无法自动下载的jar包时如何手动引入。此外,还解决了在Controller层使用@RestController注解时遇到的问题,通过添加spring-boot-starter-web依赖来修复。
1386

被折叠的 条评论
为什么被折叠?



