Spring Boot项目下的pom.xml文件主要用来存放依赖信息,具体代码如下(部分代码已省略):

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.5.2</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com.example</groupId><artifactId>demo</artifactId><version>0.0.1-SNAPSHOT</version><name>demo</name><description>Demo project for Spring Boot</description><properties><java.version>1.8</java.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>

spring-boot-starter-parent:是一个特殊的starter,它用来提供相关的Maven默认依赖,使用它之后,常用的包依赖可以省去version标签。
spring-boot-starter-web:只要将其加入到项目的maven依赖中,我们就会得到一个可执行的Web应用。该依赖中包含许多常用的依赖包,比如spring-web、spring-webmvc等。这样,我们不需要做任何Web配置,便能获得相关Web服务。
spring-boot-starter-test:这个依赖和测试相关,只要引入它,就会把所有与测试相关的包全部引入。
spring-boot-maven-plugin:这是一个Maven插件,能够以Maven的方式为应用提供Spring Boot的支持,即为Spring Boot应用提供执行Maven操作的可能,并能够将Spring Boot应用打包为可执行的jar或war文件。

总结

  • 以上都是自动生成的.了解即可

Spring Boot pom文件相关推荐

  1. spring boot 字体文件等静态资源无法获取

    spring boot 字体文件等静态资源无法获取 原因 原因maven打包时会过滤掉一些静态文件 解决办法 在pom.xml文件中配置静态资源过滤,然后再放行静态资源,这样就能让maven识别到那些 ...

  2. Spring boot yml文件的书写格式

    Spring boot yml文件的书写格式 使用ide 创建好spring boot文件格式后https://blog.csdn.net/weixin_42292697/article/detail ...

  3. 项目_功能模块_基于Spring Boot的文件上传下载功能的设计与实现

    文章目录 基于Spring Boot的文件上传下载功能模块的设计与实现 1.前言 2.技术栈 3.关键源码 4.实现效果 4.1.登录 4.2.文件列表 4.3.上传文件测试 4.3.1.测试图片 4 ...

  4. spring boot pom配置_125 SpringCloud服务配置中心

    1. 为什么需要使用配置中心 (1) 常用的配置管理解决方案有哪些缺点? 硬编码:需要修改代码的话繁琐且风险大: 配置写在properties里面,在集群环境下,需要替换和重启: 写在xml文件中,一 ...

  5. Apache Camel,Spring Boot 实现文件复制,转移 (转)

    基本框架 Apache Camel Spring Boot Maven 开发过程 1.新建一个POM(quickstart)项目,在POM文件中添加Camel和Spring Boot的依赖 <p ...

  6. springboot 上传文件解析入库_十五分钟用Spring Boot实现文件上传功能

    Spring Boot最好的学习方法就是实战训练,今天我们用很短的时间启动我们第一个Spring Boot应用,并且制作一个文件上传系统, 用户可以将本地文件上传到服务器上.我将假设读者为几乎零基础, ...

  7. JavaEE进阶 - Spring Boot 日志文件 - 细节狂魔

    文章目录 1.?志有什么?? 2.?志怎么?? 3.自定义日志打印 准备工作:创建一个 Spring Boot 项目,并在其中创建一个UserController类,用来演示. 在程序中得到?志对象 ...

  8. VUE+Spring Boot,文件上传el-upload报错--Current request is not a multipart request,记录

    做了个简单的文件上传功能,测试时发现报错Current request is not a multipart request,网上查了很多办法,记录一下: 1.最多的:当前请求不是multipart ...

  9. spring boot 日志文件配置(logback-spring.xml)亲测可用!

    问题描述:如何配置springboot项目,通过日志配置,使之输出自定义日志. 详细文章:https://blog.csdn.net/gebitan505/article/details/701421 ...

最新文章

  1. 转换前台javascript传递过来的时间字符串到.net的DateTime
  2. html鼠标悬停出现新元素,CSS:我如何将鼠标悬停在一个元素上,并显示另一个元素?...
  3. 2020年人工神经网络第二次作业
  4. [转]web标准的几个误区
  5. Supervisor行为分析和实践
  6. 模式7--ThreadPerMessage
  7. spring boot+mybatis-plus+SQL server调用有返回值的存储过程
  8. java random array_java復習之Math、Random、Arrays工具類
  9. AWS 推出长期支持的 OpenJDK 免费分发版本 —— Amazon Corretto
  10. 【数学模型】基于Matlab实现洪水调度运算
  11. 如何用计算机计算平均温差,换热器传热计算的平均温差法.PPT
  12. Pandas学习——空值填充
  13. java 对hashmap排序_Java 对HashMap进行简便排序的三种常见方法
  14. 数据分析各省高考难度,河南两广山西 最难
  15. 银行卡识别技术-移动支付新宠儿
  16. Java实现 蓝桥杯VIP 算法提高 扫雷
  17. vue项目性能优化(图片优化)
  18. 图书馆小程序—Alpha迭代—第七周会议记录
  19. Field accountDao in com.mdxl.service.AccountService required a bean of type 'com.mdxl.dao.MbAccountD
  20. CPLD国产替代的成熟选择

热门文章

  1. Educoder Basemap和seaborn 第三关:Basemap
  2. 飞腾服务器自带的kvm管理,领存技术飞腾FT2000+ 2U 12盘位存储服务器
  3. .netcore 和 java_Java Spring Boot VS .NetCore (九) Spring Security vs .NetCore Security
  4. 恭喜宿主获得鸿蒙,第四十章大殿讲道,十连抽获得鸿蒙至宝!
  5. SSM Generator生成mapper中xml文件:未能解析映射资源:“文件嵌套异常
  6. kotlin 复制对象属性_Kotlin面向对象编程笔记
  7. mysql中首字母大写的函数,如何借助MySQL函数将字符串的首字母大写?
  8. Eclipse日常踩坑记录——导入文件时遇到的几个问题
  9. vue视频保存不下来_女子直播吃章鱼被“反杀”!拔不下来了,视频超痛……
  10. 相分离相关文章阅读Intrinsically disordered linkers determine the interplay between phase separation and gelat