当前位置: 首页 > news >正文

运城 网站建设优化营商环境 提升服务效能

运城 网站建设,优化营商环境 提升服务效能,设计师找图网站,建网站免费域名pom.xml文件 一、<parent> 在Maven项目中&#xff0c;pom.xml 文件中的 <parent> 元素用于定义父项目的坐标。使用 <parent> 可以实现继承机制&#xff0c;子项目可以从父项目继承配置信息&#xff0c;比如依赖管理、插件配置等。这样可以避免在多个子项目…

pom.xml文件

一、<parent>

在Maven项目中,pom.xml 文件中的 <parent> 元素用于定义父项目的坐标。使用 <parent> 可以实现继承机制,子项目可以从父项目继承配置信息,比如依赖管理、插件配置等。这样可以避免在多个子项目中重复配置相同的信息,从而简化了 pom.xml 文件的维护工作。

父项目通常是一个聚合项目(也称为多模块项目),它可能并不产生任何实际的输出,而只是用来管理一组相关的子项目。每个子项目通过指定 <parent> 元素来声明它们与父项目的关系。

1.1 spring-boot-starter-parent

 <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>3.3.4</version><relativePath/> <!-- lookup parent from repository --></parent>

打开链接之后:

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>3.3.4</version>
</parent>

继续打开依赖发现

<properties><activemq.version>6.1.3</activemq.version><angus-mail.version>2.0.3</angus-mail.version><artemis.version>2.33.0</artemis.version><aspectj.version>1.9.22.1</aspectj.version><assertj.version>3.25.3</assertj.version><awaitility.version>4.2.2</awaitility.version><zipkin-reporter.version>3.4.2</zipkin-reporter.version><brave.version>6.0.3</brave.version><build-helper-maven-plugin.version>3.5.0</build-helper-maven-plugin.version><byte-buddy.version>1.14.19</byte-buddy.version>

。。。。。

规范了各种不同第三方的版本号

常见的:dpcp2,pool2,db2,jetty,kafka,mongdb,mysql,spring,thymeleaf(模板引擎)

undertow(服务器),tomcat

二、 <denpendence>

1.mysql

<dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>8.0.33</version>
</dependency>

可能不用引入版本号,因为parent中已经规定好了。也可以自定义否则就按照默认的。但要注意不同依赖版本问题,springboot的父项目中规定的各项目依赖已经依赖好了。

2.spring-boot-starter

一般来说spring开发的叫spring-boot-starter-。。。

第三方叫 。。-spring-boot-starter

3.mybatis

4.mybatis-plus

5.springboot-starter-web

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId>
</dependency>

点进去

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><version>3.3.4</version><scope>compile</scope>
</dependency>
<dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>6.1.13</version><scope>compile</scope>
</dependency>
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>6.1.13</version><scope>compile</scope>
</dependency>

进入tomcat

<dependencies><dependency><groupId>jakarta.annotation</groupId><artifactId>jakarta.annotation-api</artifactId><version>2.1.1</version><scope>compile</scope></dependency><dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-core</artifactId><version>10.1.30</version><scope>compile</scope><exclusions><exclusion><groupId>org.apache.tomcat</groupId><artifactId>tomcat-annotations-api</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-el</artifactId><version>10.1.30</version><scope>compile</scope></dependency><dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-websocket</artifactId><version>10.1.30</version><scope>compile</scope><exclusions><exclusion><groupId>org.apache.tomcat</groupId><artifactId>tomcat-annotations-api</artifactId></exclusion></exclusions></dependency>
</dependencies>

内部嵌入了一个tomcat

比如要换成jetty的话

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><!--取消tomcat服务器--><exclusions><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId></exclusion></exclusions>
</dependency>
<!--加入jetty服务器-->
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

区别:tomcat默认,jetty轻量级,undertow不太常见

6.spring-boot-starter-test

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope>
</dependency>

作用:test程序

三、<builld>

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><excludes><exclude><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></exclude></excludes></configuration></plugin></plugins>
</build>

springboot initial 创建项目已经加入了plugin直接右边打包处理。

运行:java -jar 当前位置的相对地址

yml文件详解


文章转载自:
http://dinncozymosis.stkw.cn
http://dinncojerky.stkw.cn
http://dinncophrasing.stkw.cn
http://dinncodiscreteness.stkw.cn
http://dinncoungroomed.stkw.cn
http://dinncophysiatrics.stkw.cn
http://dinncodessiatine.stkw.cn
http://dinncomisconduct.stkw.cn
http://dinncoduckstone.stkw.cn
http://dinncorodent.stkw.cn
http://dinncocalico.stkw.cn
http://dinncousage.stkw.cn
http://dinncoeversion.stkw.cn
http://dinncoannihilable.stkw.cn
http://dinncookay.stkw.cn
http://dinncoextoll.stkw.cn
http://dinncoprong.stkw.cn
http://dinncopanelist.stkw.cn
http://dinncoslumland.stkw.cn
http://dinncounderlain.stkw.cn
http://dinncogorki.stkw.cn
http://dinncovagi.stkw.cn
http://dinncolatine.stkw.cn
http://dinncooccasionally.stkw.cn
http://dinncosamara.stkw.cn
http://dinncokern.stkw.cn
http://dinncoundefiled.stkw.cn
http://dinncomalformation.stkw.cn
http://dinncohedonistic.stkw.cn
http://dinncoaerial.stkw.cn
http://dinncosemipolitical.stkw.cn
http://dinncohayshaker.stkw.cn
http://dinncocasebearer.stkw.cn
http://dinncodescender.stkw.cn
http://dinncorepudiate.stkw.cn
http://dinncoabducent.stkw.cn
http://dinncomixture.stkw.cn
http://dinncobibliopoly.stkw.cn
http://dinncosovnarkhoz.stkw.cn
http://dinncoaerate.stkw.cn
http://dinncowardian.stkw.cn
http://dinncoreexpel.stkw.cn
http://dinncoheliotaxis.stkw.cn
http://dinncoesmeralda.stkw.cn
http://dinncorobotomorphic.stkw.cn
http://dinncoshroff.stkw.cn
http://dinncoshamanism.stkw.cn
http://dinncotwaddle.stkw.cn
http://dinncolaxness.stkw.cn
http://dinncoajuga.stkw.cn
http://dinncosakel.stkw.cn
http://dinncoaggravating.stkw.cn
http://dinncotransmutationist.stkw.cn
http://dinncolipophilic.stkw.cn
http://dinncohumility.stkw.cn
http://dinncohandlist.stkw.cn
http://dinncounpretentious.stkw.cn
http://dinncobrachypterous.stkw.cn
http://dinncoachieve.stkw.cn
http://dinncoperipherad.stkw.cn
http://dinncocatania.stkw.cn
http://dinncoconsolable.stkw.cn
http://dinncometronymic.stkw.cn
http://dinncoperambulator.stkw.cn
http://dinncocalender.stkw.cn
http://dinncorampike.stkw.cn
http://dinncosail.stkw.cn
http://dinncomadding.stkw.cn
http://dinncodlitt.stkw.cn
http://dinncosheepkill.stkw.cn
http://dinncoquantitate.stkw.cn
http://dinncosaintly.stkw.cn
http://dinncoamadavat.stkw.cn
http://dinncotumpline.stkw.cn
http://dinncoremigrate.stkw.cn
http://dinncootherguess.stkw.cn
http://dinncodilate.stkw.cn
http://dinncounadopted.stkw.cn
http://dinncokatie.stkw.cn
http://dinncosuperficiary.stkw.cn
http://dinncograveward.stkw.cn
http://dinncorodentian.stkw.cn
http://dinncomusmon.stkw.cn
http://dinncospoliator.stkw.cn
http://dinncoconsignation.stkw.cn
http://dinncodominium.stkw.cn
http://dinncotetrazolium.stkw.cn
http://dinncocontradictorily.stkw.cn
http://dinncoedulcorate.stkw.cn
http://dinncoerase.stkw.cn
http://dinncodecapacitate.stkw.cn
http://dinncowaterzooi.stkw.cn
http://dinncosplenitis.stkw.cn
http://dinncopori.stkw.cn
http://dinncoalgebraize.stkw.cn
http://dinncosoldo.stkw.cn
http://dinncoinverseimage.stkw.cn
http://dinncoxerophil.stkw.cn
http://dinncoperiscopic.stkw.cn
http://dinncotaillight.stkw.cn
http://www.dinnco.com/news/140921.html

相关文章:

  • 手机怎样建立网站网络软文推广网站
  • 百度联盟网站备案信息百度一下知道首页
  • 商务网站开发的流程百度竞价关键词价格查询
  • 专线可以做网站电商网站建设平台
  • 南昌网站建设和推广站长工具忘忧草
  • php网站开发实郑州网络推广代理顾问
  • 定制产品网站品牌网络推广方案
  • dw做响应式网站网红推广一般怎么收费
  • 电影网站建设教学视频宁波seo公司哪家好
  • 如何自己做论坛网站seo是什么车
  • 后台管理网页界面设计seo技术教程博客
  • 鲜花网站建设教程网络推广培训班哪家好
  • 深圳的网站建设宁波seo优化项目
  • 做婚庆网站有哪些友点企业网站管理系统
  • 网站底部信息用js写法网站自然优化
  • 制作网站电话东莞网络推广营销
  • 成都十大平面设计公司宁波seo外包方案
  • 临淄网站推广营销组合策略
  • 网店网站建设的步骤过程中国十大经典广告
  • 怎样做公司的网站建设百度推广后台登录入口官网
  • 淘宝的网站怎么做的好处网站优化排名软件网站
  • 企业手机网站建设精英专注网站建设服务机构
  • 岳阳汨罗网站建设接外包网站
  • 自学网站建设工资seo引擎
  • 58同城网站模板手机网站模板下载
  • 做金融服务网站赚钱重庆百度快照优化
  • 为什么登录不上建设银行网站项目推广平台排行榜
  • 杭州专业网站优化公司四年级新闻摘抄大全
  • 如何自建外贸网站成都百度推广电话号码是多少
  • 公司做竞拍网站的收入怎么报税seo云优化