Spring Framwork Language Support v5.3.36 SNAPSHOT
Language 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 年前3Spring Framwork Language Support v6.0.0-M2
Language 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 年前3Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 1.9. View Technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reactive 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 smaller0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framwork Data Access v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 1.9. Solutions to Common Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . transaction management abstraction for reactive applications that make use of reactive types or Kotlin Coroutines. The following listing shows the transaction strategy defined by org.springframework management by inspecting the method return type. Methods returning a reactive type such as Publisher or Kotlin Flow (or a subtype of those) qualify for reactive transaction management. All other return types0 码力 | 197 页 | 2.76 MB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 1.9. HTTP Caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . servlet); 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() { override0 码力 | 259 页 | 3.58 MB | 1 年前3Spring Framwork Core Technologies v5.3.36 SNAPSHOT
Instantiation Logic with a FactoryBean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 1.9. Annotation-based Container Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Java 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 0 码力 | 485 页 | 6.31 MB | 1 年前3Spring 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 年前3Spring 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 年前3Spring 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 年前3Spring 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
共 214 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22