{"id":19656425,"url":"https://github.com/daggerok/reactive-spring","last_synced_at":"2025-04-28T18:32:50.444Z","repository":{"id":151041955,"uuid":"54283211","full_name":"daggerok/reactive-spring","owner":"daggerok","description":"Awesome modern reactive non-blocking java web apps by using best framework ever!","archived":false,"fork":false,"pushed_at":"2019-05-11T12:32:07.000Z","size":234,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T10:23:09.969Z","etag":null,"topics":["spring-5","spring-boot","spring-framework-5","spring-webflux","webflux"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-19T19:22:57.000Z","updated_at":"2020-04-27T18:06:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"84ee25c8-7188-4869-87e5-b6ee4ce141b2","html_url":"https://github.com/daggerok/reactive-spring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Freactive-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Freactive-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Freactive-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Freactive-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/reactive-spring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251366127,"owners_count":21578078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["spring-5","spring-boot","spring-framework-5","spring-webflux","webflux"],"created_at":"2024-11-11T15:27:45.563Z","updated_at":"2025-04-28T18:32:50.434Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-webflux  [![build](https://travis-ci.org/daggerok/reactive-spring.svg?branch=master)](https://travis-ci.org/daggerok/reactive-spring)\nmodern reactive and non-blocking java web apps\n\n```java\n@Component\nclass ApplicationHandlers {\n\n  /** Functional rendering thymeleaf template */\n  Mono\u003cRenderingResponse\u003e index(final ServerRequest request) {\n    return create(\"index\").modelAttribute(\"message\", \"Hello, World!\")\n                          .build()\n        ;\n  }\n\n/*// same index rendering...\n  Mono\u003cServerResponse\u003e index(final ServerRequest request) {\n    return ok().contentType(TEXT_HTML)\n               .render(\"index\", singletonMap(\"message\", \"Hello, World!\"))\n        ;\n  }\n*/\n\n  /** Functional webflux REST API endpoint */\n  Mono\u003cServerResponse\u003e api(final ServerRequest request) {\n    return ok().contentType(APPLICATION_JSON_UTF8)\n               .body(Mono.just(\"Hello World!\"), String.class)\n        ;\n  }\n}\n\n@Configuration\n@EnableWebFlux\npublic class Application {\n\n  @Bean\n  RouterFunction routes(final ApplicationHandlers handlers) {\n    return route(GET(\"/api/**\").and(accept(APPLICATION_JSON_UTF8)), handlers::api)\n        .andOther(route(GET(\"/\").and(accept(TEXT_HTML)), handlers::index))\n        ;\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Freactive-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Freactive-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Freactive-spring/lists"}