一、起步
1.先导
凡技术必登其官网的原则,官网走一波:https://projects.spring.io/spring-boot/#quick-start
极力推荐一个springboot教程:https://gitee.com/didispace/SpringBoot-Learning
2.springboot优点
官网原版:
Features
- Create stand-alone Spring applications
- Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
- Provide opinionated ‘starter‘ POMs to simplify your Maven configuration
- Automatically configure Spring whenever possible
- Provide production-ready features such as metrics, health checks and externalized configuration
- Absolutely no code generation and no requirement for XML configuration
翻译:
特征
- 创建独立的Spring应用程序
- 直接嵌入Tomcat,Jetty或Undertow(无需部署WAR文件)
- 提供自己的“入门”POM来简化您的Maven配置
- 尽可能自动配置Spring
- 提供生产就绪功能,如指标,运行状况检查和外部配置
- 绝对不会生成代码,也不需要XML配置
二、第一个HelloWorld程序
1.网页工具产生脚手架
参考:http://blog.didispace.com/spring-boot-learning-1/
2.使用IDEA内嵌Spring Initializr