SpringBoot项目的基本依赖

SpringBoot项目的基本依赖

SpringBoot项目的核心依赖,统一各个依赖的版本号:


parent:



		org.springframework.boot

		spring-boot-starter-parent

		2.2.0.RELEASE

		 

	

其他:

per.zyh

	demo_springboot111401

	0.0.1-SNAPSHOT

	demo

	Demo project for Spring Boot



	

		1.8

	

Web模块等:

<!--    SpringBoot的Web模块:     tomcat容器,springmvc,jackson,commons-file....-->

	<dependencies>

		<dependency>

			<groupId>org.springframework.boot</groupId>

			<artifactId>spring-boot-starter-web</artifactId>

		</dependency>



<!--		 热部署  (效果不咋地)  -->

		<dependency>

			<groupId>org.springframework.boot</groupId>

			<artifactId>spring-boot-devtools</artifactId>

			<scope>runtime</scope>

			<optional>true</optional>

		</dependency>



<!--        lombok插件    -->

		<dependency>

			<groupId>org.projectlombok</groupId>

			<artifactId>lombok</artifactId>

			<version>1.16.20</version>

			<optional>true</optional>

		</dependency>



<!--     SpringBoot的测试类的依赖:        -->

		<dependency>

			<groupId>org.springframework.boot</groupId>

			<artifactId>spring-boot-starter-test</artifactId>

			<scope>test</scope>

			<exclusions>

				<exclusion>

					<groupId>org.junit.vintage</groupId>

					<artifactId>junit-vintage-engine</artifactId>

				</exclusion>

			</exclusions>

		</dependency>

	</dependencies>



<!--	 Maven插件:

		该插件为Spring Boot项目提供了执行Maven操作的支持。

		比如:能够将Spring Boot项目打包为可执行的jar或war文件,然后以通常的方式运行Spring Boot项目。-->

	<build>

		<plugins>

			<plugin>

				<groupId>org.springframework.boot</groupId>

				<artifactId>spring-boot-maven-plugin</artifactId>

			</plugin>

		</plugins>

	</build>

你可能感兴趣的:(分布式+微服务等(第四阶段时))