如何快速创建一个springboot项目

如何快速创建一个spring boot项目

可以使用eclipse或idea快速创建



一、idea快速创建springboot项目

  1. file --> new project --> Spring Initializr --> 选则jdk --> next
  2. 修改信息 或默认 --> next
  3. 选择模块,需要什么功能就导入什么模块 --> next --> finish
  4. 需要联网自动下载spring boot项目
  5. 目录中的.mvn 、.gitignore、mvnw 、mvnw.cmd 没用把他删掉
  6. 可以在程序中添加一个controller类启动测试
  7. 默认生成的目录结构resources里边,
resources
	static:保存静态资源,js、css、images;
	templates:保存所有模板页面;(springboot默认jar嵌入式tomcat不支持jsp),可以使用模板引擎(freemarker、thymeleaf);
	application.properties:spring boot的应用配置文件(也可以用application.yml),用来修改默认配置的;

二、sts快速创建springboot项目

  1. 右键 --> new --> spring starter project (other --> spring starter project ) – next
  2. 修改项目名等信息 --> next
  3. 选择要创建的模块 --> finish
  4. 联网创建
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值