栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

如何快速创建一个springboot项目

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何快速创建一个springboot项目

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

可以使用eclipse或idea快速创建


文章目录
  • 如何快速创建一个spring boot项目
  • 一、idea快速创建springboot项目
  • 二、sts快速创建springboot项目


一、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. 联网创建
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/889096.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号