spring官网学习


Tutorials

  • Building REST services with Spring Learn how to easily build RESTful services with Spring
    • Then choose “Generate Project”. A .zip will download. Unzip it. Inside you’ll find a simple, Maven-based project including a pom.xml build file (NOTE: You can use Gradle. The examples in this tutorial will be Maven based.)
    • @SpringBootApplication is a meta-annotation that pulls in component scanning, autoconfiguration, and property support. We won’t dive into the details of Spring Boot in this tutorial, but in essence, it will fire up a servlet container and serve up our service
    • @RestController = @Controller + @ResponseBody组成,等号右边两位同志简单介绍两句,就明白我们@RestController的意义了:
      • @Controller 将当前修饰的类注入SpringBoot IOC容器,使得从该类所在的项目跑起来的过程中,这个类就被实例化。当然也有语义化的作用,即代表该类是充当Controller的作用
      • @ResponseBody 它的作用简短截说就是指该类中所有的API接口返回的数据,甭管你对应的方法返回Map或是其他Object,它会以Json字符串的形式返回给客户端,本人尝试了一下,如果返回的是String类型,则仍然是String。
      • 当@Controller修饰的时候,Spring以为会返回一个View(也就是MVC中的那C)
  • Spring Security and Angular A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.
  • React.js and Spring Data REST A tutorial based on the 5-part blog series by Greg Turnquist
  • Spring Boot and OAuth2 A tutorial on “social” login and single sign on with Facebook and Github
  • Building web applications with Spring Boot and Kotlin Learn how to easily build and test web applications with

Topical Guides

  • [Spring Security Architecture] Topical guide to Spring Security, how the bits fit together and how they interact with Spring Boot

  • [Spring Boot Docker] Topical guide to using Docker and how to create container images for Spring Boot applications

  • [Spring on Kubernetes]

    Topic guide to Spring and Kubernetes

MAVEN

https://maven.apache.org/download.cgi

注解

  • autowired