Spring Framwork Language Support v5.3.36 SNAPSHOTLanguage Support Version 5.3.36-SNAPSHOT Table of Contents 1. Kotlin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.7.3. Kotlin Script Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.7.4. Kotlin multiplatform serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.9. Spring Projects in Kotlin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 42 页 | 603.79 KB | 1 年前3
Spring Framwork Language Support v6.0.0-M2Language Support Version 6.0.0-M2 Table of Contents 1. Kotlin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.7.3. Kotlin Script Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.7.4. Kotlin multiplatform serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.9. Spring Projects in Kotlin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 42 页 | 602.76 KB | 1 年前3
Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOTReactive APIs, WebFlux can also be used with Coroutines APIs in Kotlin which provides a more imperative style of programming. The following Kotlin code samples will be provided with Coroutines APIs. 1.1.3 If you are interested in a lightweight, functional web framework for use with Java 8 lambdas or Kotlin, you can use the Spring WebFlux functional web endpoints. That can also be a good choice for smaller ReactorHttpHandlerAdapter(handler); HttpServer.create().host(host).port(port).handle(adapter).bind().block(); Kotlin val handler: HttpHandler = ... val adapter = ReactorHttpHandlerAdapter(handler) HttpServer.create()0 码力 | 182 页 | 2.52 MB | 1 年前3
Spring Framwork Testing v5.3.36 SNAPSHOT.xml") ① class XmlApplicationContextTests { // class body... } ① Referring to an XML file. Kotlin @ContextConfiguration("/test-config.xml") ① class XmlApplicationContextTests { // class body class) ① class ConfigClassApplicationContextTests { // class body... } ① Referring to a class. Kotlin @ContextConfiguration(classes = [TestConfig::class]) ① class ConfigClassApplicationContextTests class) ① class ContextInitializerTests { // class body... } ① Declaring an initializer class. Kotlin @ContextConfiguration(initializers = [CustomContextInitializer::class]) ① class ContextInitializerTests0 码力 | 193 页 | 2.53 MB | 1 年前3
Spring Framwork Core Technologies v5.3.36 SNAPSHOTJava ApplicationContext context = new ClassPathXmlApplicationContext("services.xml", "daos.xml"); Kotlin val context = ClassPathXmlApplicationContext("services.xml", "daos.xml") After you learn about PetStoreService.class); // use configured instance ListuserList = service.getUsernameList(); 8 Kotlin import org.springframework.beans.factory.getBean // create and configure beans val context = C ApplicationContext context = new GenericGroovyApplicationContext("services.groovy", "daos.groovy"); Kotlin val context = GenericGroovyApplicationContext("services.groovy", "daos.groovy") The most flexible 0 码力 | 485 页 | 6.31 MB | 1 年前3
Spring Boot 3.0.0-M4 Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 7.10. Kotlin support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 7.10.3. Kotlin API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . static void main(String[] args) { SpringApplication.run(MyApplication.class, args); } } Kotlin import org.springframework.boot.autoconfigure.EnableAutoConfiguration import org.springframework0 码力 | 832 页 | 14.77 MB | 1 年前3
Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOTservlet); registration.setLoadOnStartup(1); registration.addMapping("/app/*"); } } Kotlin class MyWebApplicationInitializer : WebApplicationInitializer { override fun onStartup(servletContext: protected String[] getServletMappings() { return new String[] { "/app1/*" }; } } Kotlin class MyWebAppInitializer : AbstractAnnotationConfigDispatcherServletInitializer() { override text)); registration.setLoadOnStartup(1); registration.addMapping("/"); } } Kotlin import org.springframework.web.WebApplicationInitializer class MyWebApplicationInitializer : W0 码力 | 259 页 | 3.58 MB | 1 年前3
Spring Boot 2.7.13 Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 7.10. Kotlin Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 7.10.3. Kotlin API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . void main(String[] args) { SpringApplication.run(MyApplication.class, args); } } 14 Kotlin import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot0 码力 | 871 页 | 15.57 MB | 1 年前3
Spring Boot 2.7.17-SNAPSHOT Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 7.10. Kotlin Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 7.10.3. Kotlin API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . static void main(String[] args) { SpringApplication.run(MyApplication.class, args); } } Kotlin import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot0 码力 | 876 页 | 15.66 MB | 1 年前3
Spring Boot 2.7.16-SNAPSHOT Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 7.10. Kotlin Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 7.10.3. Kotlin API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . static void main(String[] args) { SpringApplication.run(MyApplication.class, args); } } Kotlin import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot0 码力 | 876 页 | 15.65 MB | 1 年前3
共 174 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18













