{"id":14983148,"url":"https://github.com/tangxbai/validator-lite-spring","last_synced_at":"2026-03-07T20:31:36.970Z","repository":{"id":57729434,"uuid":"245981960","full_name":"tangxbai/validator-lite-spring","owner":"tangxbai","description":"Validator-lite Spring integration component","archived":false,"fork":false,"pushed_at":"2020-05-09T07:31:33.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T12:46:56.638Z","etag":null,"topics":["spring","springmvc","validator","validator-spring"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tangxbai.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-09T08:33:10.000Z","updated_at":"2020-07-02T02:50:36.000Z","dependencies_parsed_at":"2022-09-10T22:22:49.595Z","dependency_job_id":null,"html_url":"https://github.com/tangxbai/validator-lite-spring","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tangxbai/validator-lite-spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangxbai%2Fvalidator-lite-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangxbai%2Fvalidator-lite-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangxbai%2Fvalidator-lite-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangxbai%2Fvalidator-lite-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tangxbai","download_url":"https://codeload.github.com/tangxbai/validator-lite-spring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangxbai%2Fvalidator-lite-spring/sbom","scorecard":{"id":867880,"data":{"date":"2025-08-11","repo":{"name":"github.com/tangxbai/validator-lite-spring","commit":"3a2f264b8de00273891e15c7c688736e6e77f668"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6phf-73q6-gh87","Warn: Project is vulnerable to: GHSA-p66x-2cv9-qq3v","Warn: Project is vulnerable to: GHSA-wxr5-93ph-8wr9","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T03:13:29.129Z","repository_id":57729434,"created_at":"2025-08-24T03:13:29.129Z","updated_at":"2025-08-24T03:13:29.129Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","springmvc","validator","validator-spring"],"created_at":"2024-09-24T14:06:48.522Z","updated_at":"2026-03-07T20:31:36.952Z","avatar_url":"https://github.com/tangxbai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# validator-lite-spring\n[![validator-lite-spring](https://img.shields.io/badge/plugin-validator--lite--spring-green)](https://github.com/tangxbai/mybatis-mappe-spring) ![version](https://img.shields.io/badge/release-1.0.0-blue) [![maven central](https://img.shields.io/badge/maven%20central-1.0.0-brightgreen)](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis) [![license](https://img.shields.io/badge/license-Apache%202.0-blue)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nvalidator-lite关于spring的中间件，用于更方便的将validator-lite组件整合到spring框架中。\n\nvalidator-lite-spring保留了原始spring的验证方式，支持 `@Validated` 注解开启数据验证，也支持方法`BindingResult` 参数捕获验证结果，不仅局限于JavaBean的合法性验证，更扩展到了普通参数也可以执行规则校验。\n\n在项目中，你可以使用BindingResult来获取绑定的错误信息，也可以获取关于validator-lite（ValidatedResult）独有的验证结果，此对象中封装的验证结果更为详细明了。\n\n\n\n## 关联文档\n\n关于纯java环境，请移步到：https://github.com/tangxbai/validator-lite\n\n关于整合springboot，请移步到：https://github.com/tangxbai/validator-lite-spring-boot\n\n\n\n## 快速开始\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.viiyue.plugins\u003c/groupId\u003e\n    \u003cartifactId\u003evalidator-lite-spring\u003c/artifactId\u003e\n    \u003cversion\u003e[VERSION]\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n如何获取最新版本？[点击这里获取最新版本](https://search.maven.org/search?q=g:com.viiyue.plugins%20AND%20a:validator-lite-spring\u0026core=gav)\n\n\n\n## 基础配置\n\n仅需要配置一个SpringBean在你的mvc.xml中即可，让spring可以托管这个bean就可以开启验证支持。\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cbeans xmlns=\"http://www.springframework.org/schema/beans\"\n\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n\txmlns:mvc=\"http://www.springframework.org/schema/mvc\" \n\txmlns:context=\"http://www.springframework.org/schema/context\"\n\txsi:schemaLocation=\"\n\t\thttp://www.springframework.org/schema/beans \n\t\thttp://www.springframework.org/schema/beans/spring-beans-4.0.xsd\n\t\thttp://www.springframework.org/schema/context \n\t\thttp://www.springframework.org/schema/context/spring-context-4.0.xsd\n\t\thttp://www.springframework.org/schema/mvc \n\t\thttp://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd\"\u003e\n    \n    \u003c!-- 开启注解驱动模式 --\u003e\n    \u003cmvc:annotation-driven/\u003e\n    \n    \u003c!-- 配置此bean即可开启数据验证支持 --\u003e\n    \u003cbean class=\"com.viiyue.plugins.validator.spring.ValidatorLiteBean\" primary=\"true\"\u003e\n        \u003cproperty name=\"configuration.enableSingleMode\" value=\"false\"/\u003e\n        \u003cproperty name=\"configuration.enableStrictMode\" value=\"false\"/\u003e\n        \u003cproperty name=\"configuration.enableWarningLog\" value=\"true\"/\u003e\n        \u003cproperty name=\"configuration.defaultLanguage\" value=\"zh-TW\"/\u003e\n    \u003c/bean\u003e\n    \n    \u003c!-- 开启Spring的国际化语言配置，此配置同样可以在validator-lite-spring中生效 --\u003e\n    \u003cbean id=\"messageSource\" class=\"org.springframework.context.support.ReloadableResourceBundleMessageSource\"\u003e\n        \u003cproperty name=\"cacheSeconds\" value=\"1800\" /\u003e\n        \u003cproperty name=\"defaultEncoding\" value=\"UTF-8\" /\u003e\n        \u003cproperty name=\"useCodeAsDefaultMessage\" value=\"true\" /\u003e\n        \u003cproperty name=\"basenames\"\u003e\n            \u003clist\u003e\n                \u003cvalue\u003eclasspath:Message\u003c/value\u003e\n            \u003c/list\u003e\n        \u003c/property\u003e\n    \u003c/bean\u003e\n    \n    \u003c!-- 省略你关于其他bean的配置 --\u003e\n    ...\n\u003c/beans\u003e\n```\n\n\n\n## 关于作者\n\n- 邮箱：tangxbai@hotmail.com\n- 掘金： https://juejin.im/user/5da5621ce51d4524f007f35f\n- 简书： https://www.jianshu.com/u/e62f4302c51f\n- Issuse：https://github.com/tangxbai/validator-lite-spring/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangxbai%2Fvalidator-lite-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangxbai%2Fvalidator-lite-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangxbai%2Fvalidator-lite-spring/lists"}