Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
model. You can think of this as a small library or a set of utilities that an application can use to route and handle requests. The big difference with annotated controllers is that the application is in WebFlux includes WebFlux.fn, a lightweight functional programming model in which functions are used to route and handle requests and contracts are designed for immutability. It is an alternative to the annotation-based major difference that router functions provide not just data, but also behavior. RouterFunctions.route() provides a router builder that facilitates the creation of routers, as the following example shows:0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framwork RSocket v5.3.36 SNAPSHOT
whole. Message Format RSocket messages contain data and metadata. Metadata can be used to send a route, a security token, etc. Data and metadata can be formatted differently. Mime types for each are declared requests on a given connection. While all messages can have metadata, typically metadata such as a route are per-request and therefore only included in the first message on a request, i.e. with one of the applications: • Composite Metadata-- multiple, independently formatted metadata entries. • Routing — the route for a request. 1.2. Java Implementation The Java implementation for RSocket is built on Project0 码力 | 19 页 | 279.85 KB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
MVC includes WebMvc.fn, a lightweight functional programming model in which functions are used to route and handle requests and contracts are designed for immutability. It is an alternative to the annotation-based major difference that router functions provide not just data, but also behavior. RouterFunctions.route() provides a router builder that facilitates the creation of routers, as the following example shows: servlet.function.RouterFunctions.route; PersonRepository repository = ... PersonHandler handler = new PersonHandler(repository); RouterFunctionroute = route() .GET("/person/{id}", a 0 码力 | 259 页 | 3.58 MB | 1 年前3Spring Boot 2.7.0-RC1 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 866 页 | 15.49 MB | 1 年前3Spring Boot 3.0.1 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 877 页 | 15.68 MB | 1 年前3Spring Boot 2.7.2 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 865 页 | 15.45 MB | 1 年前3Spring Boot 2.7.5 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 866 页 | 15.50 MB | 1 年前3Spring Boot 2.7.13 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 871 页 | 15.57 MB | 1 年前3Spring Boot 3.0.13 Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 891 页 | 15.91 MB | 1 年前3Spring Boot 3.0.13-SNAPSHOT Reference Documentation
application is ready to handle traffic. A failing “Readiness” state tells the platform that it should not route traffic to the application for now. This typically happens during startup, while CommandLineRunner RequestPredicates.accept; import static org.springframework.web.servlet.function.RouterFunctions.route; @Configuration(proxyBeanMethods = false) public class MyRoutingConfiguration { private static public RouterFunctionrouterFunction(MyUserHandler userHandler) { return route() .GET("/{user}", ACCEPT_JSON, userHandler::getUser) .GET("/{user}/customers" 0 码力 | 891 页 | 15.92 MB | 1 年前3
共 181 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19