Eclipse如何搭建一个SpringBoot项目

时间:2025-03-20 07:24:28

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="/POM/4.0.0" xmlns:xsi="http:///2001/XMLSchema-instance"

    xsi:schemaLocation="/POM/4.0.0 /xsd/maven-4.0.">

    <modelVersion>4.0.0</modelVersion>

    <parent>

       <groupId></groupId>

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

       <version>1.5.</version>

       <relativePath/> <!-- lookup parent from repository -->

    </parent>

    <groupId></groupId>

    <artifactId>springboot_demo</artifactId>

    <version>0.0.1-SNAPSHOT</version>

    <name>springboot_demo</name>

    <description>Demo project for Spring Boot</description>

 

    <properties>

       <>1.8</>

    </properties>

 

    <dependencies>

       <dependency>

           <groupId></groupId>

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

       </dependency>

 

       <dependency>

           <groupId></groupId>

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

           <scope>test</scope>

       </dependency>

       <!-- 添加热部署  -->

       <dependency>

            <groupId></groupId>

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

            <optional>true</optional>

       </dependency>

      

    </dependencies>

 

    <build>

       <plugins>

           <plugin>

              <groupId></groupId>

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

              <configuration><!--添加热部署  -->

                  <fork>true</fork>

              </configuration>

           </plugin>

       </plugins>

    </build>

 

</project>