2.8
重新运行 main 方法启动项目,在浏览器中输入 localhost:8080/start/springboot,如果看到 “Welcome to the world of Spring Boot!”,那么恭喜你项目启动成功!Spring Boot 就是这么简单方便!端口号默认是8080,如果想要修改,可以在 application.yml 文件中使用 server.port 来人为指定端口,如8001端口:
重新运行 main 方法启动项目,在浏览器中输入 localhost:8080/start/springboot,如果看到 “Welcome to the world of Spring Boot!”,那么恭喜你项目启动成功!Spring Boot 就是这么简单方便!端口号默认是8080,如果想要修改,可以在 application.yml 文件中使用 server.port 来人为指定端口,如8001端口: