The interpretation of the basic configuration and the pom.xml springboot

<? xml Version = "1.0" encoding = "UTF-8"?> 
<Project xmlns = "http://maven.apache.org/POM/4.0.0"
xmlns: xsi = "HTTP: //www.w3 .org / 2001 / "the XMLSchema-instance
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">: the xsi the schemaLocation = "
<modelVersion> 4.0.0 </ modelVersion>
  <-! GAV coordinates ->
<the groupId> com.test </ the groupId>
<the artifactId> springbootdemo1 </ the artifactId>
<Version> the SNAPSHOT-1.0 </ Version>
  <! - - spring-boot-starter-parent version of the arbitration Center SpringBoot, since we import dependence is no need to write the default version , is determined by the spring-boot-starter-parent well; ->
    <parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
</parent>

<dependencies>
      <! - add web-dependent ->
        <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
    <-! Test test relies ->
        <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
    <! - Add spring data jpa dependence ->
        <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
     <-! Mysql driving dependent ->
        <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
    <-! Freemarker template-dependent ->
        <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<!--springboot mybatis依赖-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
<!--将java目录下的.xml/.properties文件复制到resources目录下-->
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

Guess you like

Origin www.cnblogs.com/ljl5921/p/11802013.html