Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOTpublic void addCorsMappings(CorsRegistry registry) { // configure CORS... } @Override public void configureViewResolvers(ViewResolverRegistry registry) { // configure view resolution conversion... } override fun addCorsMappings(registry: CorsRegistry) { // configure CORS... } override fun configureViewResolvers(registry: ViewResolverRegistry) { // configure implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/api/**") .allowedOrigins("https://domain2.com")0 码力 | 259 页 | 3.58 MB | 1 年前3
Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOTpublic void addCorsMappings(CorsRegistry registry) { // configure CORS... } @Override public void configureViewResolvers(ViewResolverRegistry registry) { // configure view resolution conversion... } override fun addCorsMappings(registry: CorsRegistry) { // configure CORS... } override fun configureViewResolvers(registry: ViewResolverRegistry) { // configure implements WebFluxConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/api/**") .allowedOrigins("https://domain2.com")0 码力 | 182 页 | 2.52 MB | 1 年前3
Spring Boot 3.0.0-M4 Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532 17.3.15. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 241 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 832 页 | 14.77 MB | 1 年前3
Spring Boot 3.1.0-RC1 Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587 to override it. For example, if you have a GenericContainer using a Docker image of registry.mycompany.com/mirror/myredis, you’d use @ServiceConnection(name="redis") to ensure RedisConnectionDetails } @DynamicPropertySource static void neo4jProperties(DynamicPropertyRegistry registry) { registry.add("spring.neo4j.uri", neo4j::getBoltUrl); } } 210 Kotlin import org.junit.jupiter0 码力 | 906 页 | 16.28 MB | 1 年前3
Spring Boot 3.0.1 Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 249 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 877 页 | 15.68 MB | 1 年前3
Spring Boot 3.0.13 Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 252 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 891 页 | 15.91 MB | 1 年前3
Spring Boot 3.0.13-SNAPSHOT Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 252 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 891 页 | 15.92 MB | 1 年前3
Spring Boot 3.0.4 Reference Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 250 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 877 页 | 15.66 MB | 1 年前3
Spring Boot 3.0.0-RC2 Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 246 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 877 页 | 15.64 MB | 1 年前3
Spring Boot 3.0.3 Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 18.3.14. Enable Tomcat’s MBean Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563 this::registerErrorPages; } private void registerErrorPages(ErrorPageRegistry registry) { registry.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400")); } } 250 Kotlin import return ErrorPageRegistrar { registry: ErrorPageRegistry -> registerErrorPages(registry) } } private fun registerErrorPages(registry: ErrorPageRegistry) { registry.addErrorPages(ErrorPage(HttpStatus0 码力 | 877 页 | 15.66 MB | 1 年前3
共 352 条
- 1
- 2
- 3
- 4
- 5
- 6
- 36













