SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

发布时间:2020-06-06 08:17:48 作者:lgx211
阅读:564
开发者专用服务器限时活动,0元免费领! 查看>>

简介

优点
注意

搭建工程

通过 Spring Initializr 创建

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

项目结构

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

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.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</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-web</artifactId>
        </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>
启动

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

浏览器输入 http://localhost:8080 ,即可进入默认页面

SpringBoot学习(一)—— idea 快速搭建 Spring boot 框架

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读:
  1. 一. 对spring boot认识
  2. SpringBoot快速搭建web项目的示例

开发者交流群:

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

spring boot搭建框架 spring boo springboot学习

上一篇:TiDB数据库PD混合部署

下一篇:HTML <script> 标签

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》
开发者交流群×