使用Intellij IDEA创建SpringBoot项目
2017-12-06 14:45
686 查看
本文介绍如何通过Intellij IDEA创建SpringBoot项目
1、点击Create New Project
2、选择Spring Initialzr,点击Next
3、设置Group、Artifact、Language等信息,点击Next
4、选择依赖,我们先选择Web依赖即可,点击Next
5、命名项目,点击Finish完成
6、修改DemoApplication如下
7、启动应用
8、在浏览器输入http://localhost:8080/
1、点击Create New Project
2、选择Spring Initialzr,点击Next
3、设置Group、Artifact、Language等信息,点击Next
4、选择依赖,我们先选择Web依赖即可,点击Next
5、命名项目,点击Finish完成
6、修改DemoApplication如下
package com.springboot.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @EnableAutoConfiguration public class DemoApplication { @RequestMapping("/") String home() { return "Hello World!"; } public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } }
7、启动应用
8、在浏览器输入http://localhost:8080/
相关文章推荐
- 使用IntelliJ IDEA 创建Spring Boot项目时 显示 connect timed out 解决方法
- 使用IntelliJ IDEA 创建Spring Boot项目
- 在Intellij Idea中使用Maven创建Spring&SpringMVC项目
- springboot学习1-使用 Spring Starter Project快速创建基于spring-boot的web项目
- [转] 使用Spring Boot和Gradle创建项目
- 使用IDEA创建一个Spring Boot项目
- 使用idea创建springboot项目并打成war包发布到weblogic上
- [置顶] 使用maven创建一个spring-boot项目-集成springmvc
- 使用Gradle构建SpringBoot工程系列:第三篇 创建Spring Boot项目
- 微服务框架(一)--Eclipse使用maven创建spring boot项目
- IntelliJ IDEA创建第一个Spring Boot项目
- Spring学习(一)在IntelliJ IDEA上使用Maven创建Spring项目
- 使用idea创建SpringBoot项目
- Idea使用Maven创建多模块SpringBoot项目问题记录
- 使用maven创建spring-boot项目
- 使用idea+gradle创建springboot项目
- Intellij IDEA创建SpringBoot项目