官网:https://spring.io/


特性:

  • Create stand-alone Spring applications
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
  • Provide opinionated ‘starter’ dependencies to simplify your build configuration
  • Automatically configure Spring and 3rd party libraries whenever possible
  • Provide production-ready features such as metrics, health checks, and externalized configuration
  • Absolutely no code generation and no requirement for XML configuration
  • 包扫描过程
  • 自动配置过程

    RESTful API风格

    | 请求类型 | URL | 功能说明 | | —- | —- | —- | | GET | /users | 查询用户列表 | | POST | /users | 创建一个用户 | | GET | /users/id | 根据id查询一个用户 | | PUT | /users/id | 根据id更新一个用户 | | DELETE | /users/id | 根据id删除一个用户 |