{"id":15366857,"url":"https://github.com/kimjuny/kotsu","last_synced_at":"2026-04-18T02:31:49.128Z","repository":{"id":87819567,"uuid":"52521958","full_name":"kimjuny/kotsu","owner":"kimjuny","description":"🌶️ Spring-MVC parameter resolver extension","archived":false,"fork":false,"pushed_at":"2016-10-24T05:12:49.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:35:24.904Z","etag":null,"topics":["spring","spring-mvc","spring-web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimjuny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-25T12:13:35.000Z","updated_at":"2017-08-24T08:53:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c31a3d44-34e9-4b3f-9a75-23e12b03b169","html_url":"https://github.com/kimjuny/kotsu","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.5,"last_synced_commit":"20adbf3dd116894fc0ccb50fe0be75e916d4a124"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kimjuny/kotsu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimjuny%2Fkotsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimjuny%2Fkotsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimjuny%2Fkotsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimjuny%2Fkotsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimjuny","download_url":"https://codeload.github.com/kimjuny/kotsu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimjuny%2Fkotsu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","spring-mvc","spring-web"],"created_at":"2024-10-01T13:20:02.967Z","updated_at":"2026-04-18T02:31:49.112Z","avatar_url":"https://github.com/kimjuny.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotsu\nA Spring Web MVC extension.\n\n* Tired of modeling inputs for every request? \n\n* Don't want to remember every specific parameter validation restrictions? \n\n* Looking for a highly *flexible* \u0026 *reusable* \u0026 *customizable* replacement for Spring/Hibernate Validator? \n\nThis little but powerful Spring extention may bring you a lot help!\n\n### Kotsu Components:\n\n1. Extractor: Automatically extracts parameter according to \"Content-Type\" header.\n\n2. Validator: Validates input parameter by simple strategies.\n\n3. Assembler: Assemble and return the result.\n\nEach components are reusable \u0026 customizable.\n\n### Basic Usage:\n\n```java\n@RestController\n@RequestMapping(\"/\")\npublic class TestController {\n\n    @RequestMapping(value = \"\",method = RequestMethod.POST, produces = {MediaType.APPLICATION_JSON_VALUE})\n    public void api(@Absent(Mapper.PAGE_IDX) Optional\u003cInteger\u003e pageIdx,\n                    @Absent @VInteger(min = 0, max = 10) Optional\u003cInteger\u003e pageMax,\n                    @Required(Mapper.MODE) Long mode,\n                    @Required @VString(min = 1, max = 32, regex = \"*\") String userName) {\n\n    }\n\n}\n```\n\n### Requirements:\n\n1. Java 8\n2. Spring Web MVC or Spring Boot\n3. Latest version of Kotsu\n4. Configuration:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cbeans xmlns=\"http://www.springframework.org/schema/beans\"\n       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:mvc=\"http://www.springframework.org/schema/mvc\"\n       xsi:schemaLocation=\"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd\"\u003e\n\n    \u003ccontext:component-scan base-package=\"ek.kotsu\" /\u003e\n    \n    \u003cmvc:annotation-driven\u003e\n        \u003cmvc:argument-resolvers\u003e\n            \u003cbean class=\"ek.kotsu.resolver.AbsentParamResolver\" /\u003e\n            \u003cbean class=\"ek.kotsu.resolver.RequiredParamResolver\" /\u003e\n        \u003c/mvc:argument-resolvers\u003e\n    \u003c/mvc:annotation-driven\u003e\n\n\u003c/beans\u003e\n```\n\n### Wiki\n\nFor a better knowledge of Kotsu usage and requirements please refer to [Kotsu-Wiki](https://github.com/ronankim/kotsu/wiki).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimjuny%2Fkotsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimjuny%2Fkotsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimjuny%2Fkotsu/lists"}