Skip to main content

v4.1.0 (2020-02-03)

Scope

  • Core injection, configuration, and SPI, and Web invocation and rendering

Changes

  • Added
    • Improve JSR-330 support in Core; allow @InjectSettings to specify a configuration namespace.
    • Provide a new SPI extension mechanism and use SPI for the Web listener process.
    • Add OneConfig to unify FilterConfig, ServletConfig, and InvokerConfig.
  • Improved
    • Convert Servlets to Mapping invocations and Filters to InvokerFilter to unify request processing.
    • Add unit tests to Core and Web and fix potential issues.
    • Look up MIME types in framework configuration first, then query ServletContext if not found.

Upgrade notes

  • Change the default configuration file from hasor-config.xml to hconfig.xml. Remove the original environment parameter properties-file mechanism; hasor-env-properties no longer takes effect.
  • @Produces only controls the response Content-Type; it no longer selects the renderer.
  • Remove ListenerPipeline and methods related to RenderInvoker.lockViewType; update custom extensions.
  • Change the main configuration namespace from http://project.hasor.net/hasor/schema/main to http://www.hasor.net/sechma/main.