整合玩ssm ,折腾springboot,对着官网,别人的demo 看着简单,自己操作起来 一堆错误。

环境IDEA,maven,过程不演示 ,

file=>new project=>mavent(不用选择模板)=>next=> 填写groupid,artifactid 后next> next........

新建一个Hellocontroller, HelloApplication

最后工程如图:

 

springBoot入门

 

 

 

pom.xml

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.8.RELEASE</version>
    </parent>

    <!--导入springBoot 的依赖-->
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

    <!--Creating an Executable Jar-->
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
View Code

相关文章:

  • 2021-06-01
  • 2021-08-08
猜你喜欢
  • 2021-12-24
  • 2021-08-06
  • 2021-12-28
  • 2021-11-20
  • 2020-03-19
相关资源
相似解决方案