v5.2.0 (2026-09-12)
<dependency>
<groupId>net.hasor</groupId>
<artifactId>hasor-boot</artifactId>
<version>5.2.0</version>
</dependency>
Scope
- Core, Config, Web, and Boot.
Changes
- Added
- Adds
hasor-bootas a unified entry point for ordinary and Web applications. - Adds automatic Action result rendering with Jackson, Gson, Fastjson, and Fastjson2 support.
- Adds
WebApiBinder.addResource(...)for static resources, welcome files, and route fallbacks. - Adds a configurable
/healthendpoint to Boot Web. - Adds configurable redirect status codes to
@RedirectTo.
- Adds
- Improved
- Moves
@Aopinto Core and unifies configuration scanning with route conflict detection. - Integrates rendering into request execution and adds HEAD and cache validation for static resources.
- Unifies configuration, startup, and shutdown across Tomcat, Jetty, and Undertow.
- Standardizes Core and Web logging on Cobble.
- Expands Chinese and English documentation and historical release notes.
- Moves
- Fixed
- Prevents duplicate rendering for manually handled, asynchronous, committed, 204, and 304 responses.
- Fixes early logging initialization in executable archives.
- Fixes resource URL resolution for nested JARs without directory entries.
Upgrade notes
- Use
net.hasor.config.ConfigurationModulefor auto-configuration andhasor.loadPackagesfor scanning. - Action results are rendered automatically; set the corresponding default engine to
nonefor manual handling. - Register resources through
addResource(...)and update access control: static resources no longer pass through Hasor business filters. - Update package references for rendering, CORS, and AOP types, and remove old
RenderWebPluginregistration. - Move embedded server settings to
hasor.boot.web, retain exactly one Web container implementation, and configure health checks as needed.