Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
configuration options expressed by developers are enforced on default codecs. Custom codecs might want to get a chance to align with those preferences, like enforcing buffering limits or logging sensitive data myHeader equals myValue. HTTP HEAD, OPTIONS Web MVC @GetMapping and @RequestMapping(method=HttpMethod.GET) support HTTP HEAD transparently for request mapping purposes. Controller methods need not change patterns. For a @RequestMapping without HTTP method declarations, the Allow header is set to 31 GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS. Controller methods should always declare the supported HTTP methods0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
Headers • Shallow ETag • CORS 1.2.1. Form Data Browsers can submit form data only through HTTP GET or HTTP POST but non-browser clients can also use HTTP PUT, PATCH, and DELETE. The Servlet API requires produces instead. HTTP HEAD, OPTIONS WebFlux @GetMapping (and @RequestMapping(method=HttpMethod.GET)) support HTTP HEAD transparently for request mapping. Controller methods do not need to change. A @GetMapping (and @RequestMapping(method=HttpMethod.GET)) are implicitly mapped to and support HTTP HEAD. An HTTP HEAD request is processed as if it were HTTP GET except that, instead of writing the body, the0 码力 | 259 页 | 3.58 MB | 1 年前3Spring Framwork Testing v5.3.36 SNAPSHOT
environment for test suites or stand-alone applications. If, for example, JDBC DataSource instances get bound to the same JNDI names in test code as they do in a Java EE container, you can reuse both application release version and might also be in the long org.springframework.test form, depending on where you get it from (see the section on Dependency Management for an explanation). This library includes the org @ContextConfiguration @TestPropertySource("/test.properties") ① class MyIntegrationTests { // class body... } ① Get properties from test.properties in the root of the classpath. Kotlin @ContextConfiguration @Test0 码力 | 193 页 | 2.53 MB | 1 年前3Spring Framework Reference Documentation 4.3.26.RELEASE
application. It is based on the Spring Framework, favors convention over configuration, and is designed to get you up and running as quickly as possible. You can use start.spring.io to generate a basic project are different things. To get those nice features of Spring into your application (like dependency injection) you need to assemble all the libraries needed (jar files) and get them onto your classpath at dependencies that are hardest to identify and manage. If you are going to use Spring you need to get a copy of the jar libraries that comprise the pieces of Spring that you need. To make this easier Spring0 码力 | 1323 页 | 4.08 MB | 1 年前3Spring Framework Reference Documentation 4.3.26.RELEASE
application. It is based on the Spring Framework, favors convention over configuration, and is designed to get you up and running as quickly as possible. You can use start.spring.io to generate a basic project are different things. To get those nice features of Spring into your application (like dependency injection) you need to assemble all the libraries needed (jar files) and get them onto your classpath at dependencies that are hardest to identify and manage. If you are going to use Spring you need to get a copy of the jar libraries that comprise the pieces of Spring that you need. To make this easier Spring0 码力 | 916 页 | 5.52 MB | 1 年前3Spring Framwork Language Support v6.0.0-M2
Fluxusers = client.get().retrieve().bodyToFlux(User.class) With Kotlin and the Spring Framework extensions, you can instead write the following: val users = client.get().retrieve().bodyToFlux () bodyToFlux () // or (both are equivalent) val users : Flux = client.get().retrieve().bodyToFlux() As in Java, users in Kotlin is strongly typed, but Kotlin’s clever type inference allows for shorter constructor parameters, you may need to use annotation use-site targets, such as @field:NotNull or @get:Size(min=5, max=15), as described in this Stack Overflow response. 1.6. Bean Definition DSL Spring 0 码力 | 42 页 | 602.76 KB | 1 年前3Spring Framwork Language Support v5.3.36 SNAPSHOT
Fluxusers = client.get().retrieve().bodyToFlux(User.class) With Kotlin and the Spring Framework extensions, you can instead write the following: val users = client.get().retrieve().bodyToFlux () bodyToFlux () // or (both are equivalent) val users : Flux = client.get().retrieve().bodyToFlux() As in Java, users in Kotlin is strongly typed, but Kotlin’s clever type inference allows for shorter constructor parameters, you may need to use annotation use-site targets, such as @field:NotNull or @get:Size(min=5, max=15), as described in this Stack Overflow response. 1.6. Bean Definition DSL Spring 0 码力 | 42 页 | 603.79 KB | 1 年前3Spring Framework Reference Documentation v4.3.2
application. It is based on the Spring Framework, favors convention over configuration, and is designed to get you up and running as quickly as possible. You can use start.spring.io to generate a basic project are different things. To get those nice features of Spring into your application (like dependency injection) you need to assemble all the libraries needed (jar files) and get them onto your classpath at dependencies that are hardest to identify and manage. If you are going to use Spring you need to get a copy of the jar libraries that comprise the pieces of Spring that you need. To make this easier Spring0 码力 | 1311 页 | 4.07 MB | 1 年前3Spring Framework 1.2.6 Reference
expects to be able to call this method (with an optional list of arguments as described later) and get back a live object, which from that point on is treated as if it had been created normally via a constructor advocates usage of setter-based dependency injection, since a large number of constructor arguments can get unwieldy, especially when some properties are optional. • constructor-based dependency injection is each method invocation on A. The container will only create the singleton bean A once, and thus only get the opportunity to set its properties once. There is no opportunity for the container to provide bean0 码力 | 290 页 | 1.49 MB | 1 年前3Spring Framework 1.2.x Reference
expects to be able to call this method (with an optional list of arguments as described later) and get back a live object, which from that point on is treated as if it had been created normally via a constructor advocates usage of setter-based dependency injection, since a large number of constructor arguments can get unwieldy, especially when some properties are optional. • constructor-based dependency injection is each method invocation on A. The container will only create the singleton bean A once, and thus only get the opportunity to set its properties once. There is no opportunity for the container to provide bean0 码力 | 289 页 | 1.50 MB | 1 年前3
共 317 条
- 1
- 2
- 3
- 4
- 5
- 6
- 32