原创
HttpUtils
类 Spring Boot 的 C# HTTP 框架,基于 HttpListener,注解驱动。几行代码即可启动 REST 服务。
[SpringBootApplication(Port = 8080, Host = "localhost")]
public class Application
{
public static void Run(string[] args) => ApplicationRunner.Run(args);
}
// 控制器
[RestController("/api")]
public class HelloController
{
[GetMapping("/hello")]
public object Hello() => new { message = "Hello, HttpUtils!" };
} 为什么选择 HttpUtils
REST 与注解
@RestController、@GetMapping / @PostMapping、@RequestParam、@PathVariable、@RequestBody,写法贴近 Spring MVC。
依赖注入
@Service、@Repository、@Autowired、@Bean,支持 @Configuration 与条件注解,自动配置与 Spring Boot 风格一致。
配置灵活
支持 application.yml 与 application.properties,可同时存在;服务器端口、绑定地址、数据库连接池等均可配置。
认证与授权
@Authorize、@AllowAnonymous,配合 IAuthenticationService 与 Authorization: Bearer token,轻松保护接口。
数据库与多数据源
单数据源 / 多数据源、连接池、ValidationQuery、@Transactional,健康检查与 /actuator/datasource。
Lombok 风格
[Data]、[Builder]、[Log]、With、SneakyThrows、Cleanup、LombokSyncBase,减少样板代码。
监控与健康
/actuator/health、/actuator/info、/actuator/datasource、/actuator/env 等,开箱即用。
扩展能力
AOP、缓存、全局异常、拦截器与过滤器、定时任务与事件、WebSocket,满足常见业务场景。









鄂公网安备42011202002543号




bug收集楼
接dll Mod定制
这个逼装的我给82分,剩下的用666的方式打给你!
热爱末日沙盒生存游戏.