博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
springboot2 项目搭建
阅读量:2828 次
发布时间:2019-05-14

本文共 1543 字,大约阅读时间需要 5 分钟。

本文使用idea

eclipse也可以,可以安装spring IDE插件

新建Project或Module

可以修改Spring Boot版本,

建议别用最新的,有的依赖找不到

那么多分类,可以一个都不选,以后熟悉了,看需要选

选好存放路径

pom.xml

4.0.0
org.springframework.boot
spring-boot-starter-parent
2.0.8.RELEASE
com.urthink.upfs
spring-boot-demo
0.0.1-SNAPSHOT
spring-boot-demo
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin

启动类,

启动就可以了

package com.urthink.upfs.springbootdemo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class SpringBootDemoApplication {    public static void main(String[] args) {        SpringApplication.run(SpringBootDemoApplication.class, args);    }}

一般还需要添加web组件,要不项目启动完就就停了

org.springframework.boot
spring-boot-starter-web

 

转载地址:http://eymhd.baihongyu.com/

你可能感兴趣的文章
Redis安装 rvm
查看>>
Redis安装遇到错误解决方案Error installing redis: redis requires Ruby version >= 2.3.0.
查看>>
Redis基础
查看>>
Redis创建集群Creating cluster [ERR] Sorry, can't connect to node 192.168.X.X:XXXX
查看>>
Redis集群测试错误解决java.lang.NumberFormatException: For input string: "7006@17006"
查看>>
windows同时安装jdk7和jdk8,JDK切换问题
查看>>
Linux权限管理及用户与用户组
查看>>
WEB技术之四层架构
查看>>
LoadRunner常见问题整理
查看>>
软件测试员----面试,你准备好了么?
查看>>
软件测试常见风险分析
查看>>
TCP、UDP
查看>>
如何在需求阶段发现更多的缺陷
查看>>
也谈测试的核心技术
查看>>
一名合格的测试员应具备的素质
查看>>
设计功能和界面测试用例
查看>>
HTTP详解(3)-http1.0 和http1.1 区别
查看>>
农X行限时购秒杀活动,jmeter压测脚本
查看>>
订单系统部署到阿里云服务器上
查看>>
linux 配置jmeter安装
查看>>