11.4. 运行示例
到此,示例应用可以工作了。由于使用了spring-boot-starter-parent
POM,这样我们就有了一个非常有用的run目标来启动程序。在项目根目录下输入mvn spring-boot:run
启动应用:
如果使用浏览器打开localhost:8080,你应该可以看到如下输出:
点击ctrl-c
温雅地关闭应用程序。
Last updated
Was this helpful?
到此,示例应用可以工作了。由于使用了spring-boot-starter-parent
POM,这样我们就有了一个非常有用的run目标来启动程序。在项目根目录下输入mvn spring-boot:run
启动应用:
如果使用浏览器打开localhost:8080,你应该可以看到如下输出:
点击ctrl-c
温雅地关闭应用程序。
Last updated
Was this helpful?