Springboot微服务开发教程系列:开发入门

来源:互联网 发布:nginx配置127.0.0.1 编辑:程序博客网 时间:2024/05/14 06:00

使用IntelliJ IDEA开发springboot入门

第一步:创建项目


第二步:填写项目信息


第三步:选择特性


第四步:等待项目创建

下载项目依赖项需要一些时间,请耐心等待


第五步:编写demo代码

@RestControllerpublic class AccountController {    @RequestMapping("/hello")    public String hello()    {        return "hello the world";    }}

第六步:配置一下tomcat端口信息

编辑application.properties文件

添加配置server.port = 8000

第七步:运行程序



最后测试


--完成--




0 0
原创粉丝点击