1.idea新创建一个项目

【spring boot】【idea】100.idea新建一个spring boot项目

 

 

【spring boot】【idea】100.idea新建一个spring boot项目

 

 【spring boot】【idea】100.idea新建一个spring boot项目

 

 【spring boot】【idea】100.idea新建一个spring boot项目

 

 【spring boot】【idea】100.idea新建一个spring boot项目

 

 【spring boot】【idea】100.idea新建一个spring boot项目

 

 

【spring boot】【idea】100.idea新建一个spring boot项目

 

 

 

 

 

2.setting进入,选择自己的Maven

【spring boot】【idea】100.idea新建一个spring boot项目

 

 【spring boot】【idea】100.idea新建一个spring boot项目

 

 

 

 

 

3.简单补充一下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.1.9.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.sxd</groupId>
    <artifactId>firstdad</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>firstdad</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</artifactId>
        </dependency>
        <!--web 支持-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--jsp页面使用jstl标签-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>

        <!--用于编译jsp-->
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </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>
View Code

相关文章:

  • 2021-08-19
  • 2021-04-03
  • 2021-12-07
  • 2021-06-12
  • 2021-07-11
  • 2021-12-25
  • 2021-10-18
  • 2021-12-16
猜你喜欢
  • 2021-12-14
  • 2021-11-14
  • 2021-06-07
  • 2022-12-23
  • 2021-06-13
  • 2021-07-13
  • 2021-09-11
相关资源
相似解决方案