• 周五. 3月 29th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

使用idea搭建springBoot项目

admin

11月 28, 2021

转载至:https://blog.csdn.net/baidu_39298625/article/details/98102453

整体步骤同上

分享其中遇到的坑

一、maven依赖

springBoot版本:

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
由于新建项目是springBoot版本往往比较新,所有会存在不兼容的情况,所以可以在新建项目后,手动切换pom.XML文件中的依赖包版本
Mysql依赖:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.25</version>
<scope>runtime</scope>
</dependency>
jdbc依赖尽量和mysql版本相差不要过大
其他依赖:
<!--        检测到源码修改,自动重启-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
</dependencies>
项目源码:

链接:https://pan.baidu.com/s/1Kg8oTC_XETIJv303x9gm7Q
提取码:beey

脑子不够用当然只能脚踏实地的做事情!

《使用idea搭建springBoot项目》有8个想法
  1. After research just a few of the blog posts in your website now, and I actually like your means of blogging. I bookmarked it to my bookmark website record and will probably be checking again soon. Pls take a look at my website online as well and let me know what you think.

  2. A formidable share, I just given this onto a colleague who was doing a bit evaluation on this. And he actually bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love reading extra on this topic. If attainable, as you develop into experience, would you mind updating your weblog with more particulars? It’s highly useful for me. Massive thumb up for this blog put up!

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注