Skip to content

Commit 8bc2bff

Browse files
committed
JSR-223 coverage in new-in-4.2
1 parent 9ef3880 commit 8bc2bff

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

src/asciidoc/whats-new.adoc

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,10 @@ public @interface MyTestConfig {
478478
* `@NumberFormat` can now be used as a meta-annotation.
479479
* `JavaMailSenderImpl` has a new `testConnection()` method for checking connectivity to the server.
480480
* `ScheduledTaskRegistrar` exposes scheduled tasks.
481-
* Apache `commons-pool2` is now supported.
481+
* Apache `commons-pool2` is now supported for a pooling AOP `CommonsPool2TargetSource`.
482+
* Introduced `StandardScriptFactory` as a JSR-223 based mechanism for scripted beans,
483+
exposed through the `lang:std` element in XML. Supports e.g. JavaScript and JRuby.
484+
(Note: JRubyScriptFactory and `lang:jruby` are deprecated now, in favor of using JSR-223.)
482485

483486
=== Data Access Improvements
484487

@@ -505,13 +508,14 @@ public @interface MyTestConfig {
505508
* Built-in support for CORS including global (MVC Java config and XML namespace) and
506509
local (e.g. `@CrossOrigin`) configuration. See <<cors>> for details.
507510
* HTTP caching updates:
508-
** new `CacheControl` builder; plug into `WebContentGenerator`, `ResourceHttpRequestHandler`, `ResponseEntity`.
511+
** new `CacheControl` builder; plugged into `ResponseEntity`, `WebContentGenerator`,
512+
`ResourceHttpRequestHandler`.
509513
** improved ETag/Last-Modified support in `WebRequest`.
510-
* JavaScript view templating built on Nashorn and JDK 1.8, see `ScriptTemplateViewResolver`.
511-
* Custom `@RequestMapping` annotations.
512-
* Public methods in `AbstractHandlerMethodMapping` to register and unregister request mappings at runtime.
513-
* New `RequestBodyAdvice` extension point and a built-in implementation to support Jackson's `@JsonView`
514-
on `@RequestBody` method arguments.
514+
* Custom mapping annotations, using `@RequestMapping` as a meta-annotation.
515+
* Public methods in `AbstractHandlerMethodMapping` to register and unregister request
516+
mappings at runtime.
517+
* Protected `createDispatcherServlet` method in `AbstractDispatcherServletInitializer` to
518+
further customize the `DispatcherServlet` instance to use.
515519
* `HandlerMethod` as a method argument on `@ExceptionHandler` methods, especially
516520
handy in `@ControllerAdvice` components.
517521
* `java.util.concurrent.CompletableFuture` as an `@Controller` method return value type.
@@ -523,11 +527,13 @@ public @interface MyTestConfig {
523527
* http://square.github.io/okhttp/[OkHTTP] integration with the `RestTemplate`.
524528
* Custom `baseUrl` alternative for methods in `MvcUriComponentsBuilder`.
525529
* Serialization/deserialization exception messages are now logged at WARN level.
530+
* Default JSON prefix has been changed from "{} && " to the safer ")]}', " one.
531+
* New `RequestBodyAdvice` extension point and built-in implementation to support Jackson's
532+
`@JsonView` on `@RequestBody` method arguments.
526533
* When using GSON or Jackson 2.6+, the handler method return type is used to improve
527534
serialization of parameterized types like `List<Foo>`.
528-
* Default JSON prefix has been changed from "{} && " to the safer ")]}', " one.
529-
* Protected `createDispatcherServlet` method in `AbstractDispatcherServletInitializer` to further
530-
customize the `DispatcherServlet` instance to use.
535+
* Introduced `ScriptTemplateView` as a JSR-223 based mechanism for scripted web views,
536+
with a focus on JavaScript view templating on Nashorn (JDK 8).
531537

532538
=== WebSocket Messaging Improvements
533539

0 commit comments

Comments
 (0)