spring-axum
Spring-like application framework for Axum. It provides macro-driven auto discovery (controllers, components, interceptors, advices), validation, transactions, caching, events, and SQL/Mapper integrations to help you build maintainable web apps quickly.
Repository: https://gitee.com/luzhihaoTestingLab/spring-axum.git
Quick Start
async
Or with explicit builder chain:
async
Features
#[controller]and route macros (#[route_get],#[route_post],#[route_put],#[route_delete])#[component]for DI-style component auto registration#[interceptor]for request/response interception#[transactional]and#[tx_service]for transaction wrappers (enablesqlx_postgres)#[cacheable],#[cache_put],#[cache_evict]for in-memory caching- Event publishing/subscription via
event_listenermacro - MyBatis-style SQL mapping with
#[sql]/#[mapper]
Optional Features
Enable features in Cargo.toml as needed:
[]
= { = "0.1", = ["validator", "swagger", "sqlx_postgres"] }
License
MIT