github networknt/light-4j 1.5.4

latest releases: 2.1.37, 2.1.36, 2.1.35...
6 years ago

1.5.4 - 2017-11-20

Added

Changed

  • fixes #132 service lookup returns null if there is no entry defined in service.yml
  • fixes #131 class cast exception in service module if getting an array from one impl
  • fixes #130 Add a new constant OPENAPI_OPERATION_STRING for OpenAPI 3
  • fixes #129 Improve configurability for networknt.handler.MiddlewareHandler
  • fixes #127 Add support for interface with generic type in service module
  • fixes #126 Update serviceMap key to interface class name instead of class
  • fixes #125 Need to check certain section is empty for header.yml
  • Upgrade to 1.5.4

This release is an upgrade release from 1.5.1 and there are two major changes.

  • Switch startup hook, shutdown hook, middleware handler and routehandler to service.yml instead of Java SPI
  • Add OpenAPI 3.0 support for light-rest-4j

Upgrade Guide

For existing applications built with light-4j 1.5.1, there is no dependency change so you can just update the version number from 1.5.1 to 1.5.4 in your pom.xml. However, there are configuration change in this release to switch Java SPI to service.yml for server startup, shutdown, middleware handler and route handler. It requires you to manually modify your service.yml file (create a new one if there is no service.yml in src/main/resources/config folder) to add these entries. Example can be found at https://github.com/networknt/light-example-4j/blob/master/rest/swagger/petstore/src/main/resources/config/service.yml and the documentation can be found at https://doc.networknt.com/concern/server/

Don't miss a new light-4j release

NewReleases is sending notifications on new releases.