spring boot pom.xml

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring boot pom.xml相关的知识,希望对你有一定的参考价值。

?????????1.3   XML   ??????   ?????????   ??????   http   bsp   instance   ring   

<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 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>springboot2</groupId>
  <artifactId>dingpeng_springboot2</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>dingpeng_springboot2 Maven Webapp</name>
  <url>http://maven.apache.org</url>


  <!-- ?????? spring boot ?????????????????? -->
  <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.10.RELEASE</version>

    </parent>

    <dependencies>
    <!-- springboot  ???????????? -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!-- spring boot?????????  ?????????????????????????????????spring-boot-devtools??????????????????Spring  boot ?????????????????????
????????????????????????????????????????????????Spring boot ??????-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>
        
        <!-- log4j -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j2</artifactId>    
        </dependency>
        
        <!-- ??????Jasper  ????????????JSP -->
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <scope>provided</scope>
        </dependency>
        
        <!-- JSP  ?????? -->
        <!-- servlet ?????? -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>
        
        <!-- spring boot ??????mybatis -->
        <!-- <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>1.3.0</version>
        </dependency>
        mysql
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency> -->
    </dependencies>
    



    <!-- ???????????? ??????????????????????????????????????????????????????jar???-->
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <!-- ????????????????????? devtools ????????? -->
                    <fork>true</fork>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>

 

以上是关于spring boot pom.xml的主要内容,如果未能解决你的问题,请参考以下文章

如何在 Spring/Spring Boot pom.xml 中指定 Java 版本?

没有父pom.xml的spring-boot无法生成war打包

spring boot pom.xml

spring boot maven pom.xml设置

spring boot mybatis 整合pom.xml怎么配置

spring boot热部署pom.xml配置