{"id":37435015,"url":"https://github.com/blinkfox/zealot-spring-boot-starter","last_synced_at":"2026-01-16T06:39:12.422Z","repository":{"id":57717895,"uuid":"131735913","full_name":"blinkfox/zealot-spring-boot-starter","owner":"blinkfox","description":"Zealot快速集成到 SpringBoot 中的Starter。","archived":false,"fork":false,"pushed_at":"2018-05-02T16:46:46.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T10:09:12.726Z","etag":null,"topics":["spring-boot-zealot-starter","springboot-zealot","sql","zealot"],"latest_commit_sha":null,"homepage":"","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/blinkfox.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}},"created_at":"2018-05-01T16:27:21.000Z","updated_at":"2018-07-16T07:32:47.000Z","dependencies_parsed_at":"2022-08-24T11:11:01.099Z","dependency_job_id":null,"html_url":"https://github.com/blinkfox/zealot-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blinkfox/zealot-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blinkfox%2Fzealot-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blinkfox%2Fzealot-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blinkfox%2Fzealot-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blinkfox%2Fzealot-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blinkfox","download_url":"https://codeload.github.com/blinkfox/zealot-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blinkfox%2Fzealot-spring-boot-starter/sbom","scorecard":{"id":243454,"data":{"date":"2025-08-11","repo":{"name":"github.com/blinkfox/zealot-spring-boot-starter","commit":"3735fdaf27e874fd556eb217f46ef059fae48abf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/6 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6pcc-3rfx-4gpm","Warn: Project is vulnerable to: GHSA-hwj3-m3p6-hj38","Warn: Project is vulnerable to: GHSA-cm59-pr5q-cw85","Warn: Project is vulnerable to: GHSA-rc42-6c7j-7h5r","Warn: Project is vulnerable to: GHSA-xf96-w227-r7c4","Warn: Project is vulnerable to: GHSA-36p3-wjmg-h94x","Warn: Project is vulnerable to: GHSA-hh26-6xwr-ggv7","Warn: Project is vulnerable to: GHSA-4gc7-5j7h-4qph","Warn: Project is vulnerable to: GHSA-4wp7-92pw-q264","Warn: Project is vulnerable to: GHSA-g5mm-vmx4-3rg7","Warn: Project is vulnerable to: GHSA-cxrj-66c5-9fmh","Warn: Project is vulnerable to: GHSA-f26x-pr96-vw86","Warn: Project is vulnerable to: GHSA-ffvq-7w96-97p7","Warn: Project is vulnerable to: GHSA-rcpf-vj53-7h2m","Warn: Project is vulnerable to: GHSA-558x-2xjg-6232","Warn: Project is vulnerable to: GHSA-564r-hj7v-mcr5","Warn: Project is vulnerable to: GHSA-9cmq-m9j5-mvww","Warn: Project is vulnerable to: GHSA-wxqc-pxw9-g2p8"],"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-17T07:03:39.983Z","repository_id":57717895,"created_at":"2025-08-17T07:03:39.983Z","updated_at":"2025-08-17T07:03:39.983Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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-boot-zealot-starter","springboot-zealot","sql","zealot"],"created_at":"2026-01-16T06:39:11.812Z","updated_at":"2026-01-16T06:39:12.417Z","avatar_url":"https://github.com/blinkfox.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zealot-spring-boot-starter\n\n[![Build Status](https://secure.travis-ci.org/blinkfox/zealot-spring-boot-starter.svg)](https://travis-ci.org/blinkfox/zealot-spring-boot-starter) [![Javadocs](http://www.javadoc.io/badge/com.blinkfox/zealot-spring-boot-starter.svg)](http://www.javadoc.io/doc/com.blinkfox/zealot-spring-boot-starter) [![HitCount](http://hits.dwyl.io/blinkfox/zealot-spring-boot-starter.svg)](http://hits.dwyl.io/blinkfox/zealot-spring-boot-starter) [![GitHub issues](https://img.shields.io/github/issues/blinkfox/zealot-spring-boot-starter.svg)](https://github.com/blinkfox/zealot-spring-boot-starter/issues) [![GitHub license](https://img.shields.io/github/license/blinkfox/zealot-spring-boot-starter.svg)](https://github.com/blinkfox/zealot-spring-boot-starter/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/com.blinkfox/zealot-spring-boot-starter.svg)](http://search.maven.org/#artifactdetails%7Ccom.blinkfox%7Czealot-spring-boot-starter%7C1.2.0%7Cjar) [![GitHub forks](https://img.shields.io/github/forks/blinkfox/zealot-spring-boot-starter.svg)](https://github.com/blinkfox/zealot-spring-boot-starter/network) [![GitHub stars](https://img.shields.io/github/stars/blinkfox/zealot-spring-boot-starter.svg)](https://github.com/blinkfox/zealot-spring-boot-starter/stargazers) [![codecov](https://codecov.io/gh/blinkfox/zealot-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/blinkfox/zealot-spring-boot-starter)\n\nZealot是一个简单、强大的Java动态SQL和参数生成工具库。[Zealot文档地址](https://blinkfox.github.io/zealot/)\n\n`zealot-spring-boot-starter`则是Zealot在SpringBoot中使用的快速集成版，默认不需要任何配置即可使用。\n\n## 获取Zealot Spring Boot Starter\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.blinkfox\u003c/groupId\u003e\n    \u003cartifactId\u003ezealot-spring-boot-starter\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\n\u003e **注**: 适用于SpringBoot2的项目，JDK1.8及以上。\n\n## 核心配置\n\n在 Spring Boot 中使用Maven集成了`zealot-spring-boot-starter`之后，默认不需要任何配置，Zealot就可以开始工作了，以下是在`application.properties`文件中Zealot的默认配置和说明，供参考配置：\n\n```properties\n# 是否开启调试模式，如果开启的话，每次调用都会实时从最新的xml文件中获取sql，默认值为false.\nzealot.debug=false\n\n# 是否打印zealot的启动banner，默认为true.\nzealot.print-banner=true\n\n# 是否打印zealot的sql日志，默认为true.\nzealot.print-sql=true\n\n# zealot的XML文件所在的位置，多个用逗号隔开,可以是目录也可以是具体的xml文件，默认是名为'zealot'的资源目录及子目录下的位置.\n# 所以，如果不配置其他目录，你的xml就应该存放在这样的目录和子目录下:'main/resources/zealot/'，才能被扫描到，其他目录的则需要更改此配置项\nzealot.xml-locations=zealot\n\n# zealot的自定义handler处理器所在的位置，多个用逗号隔开,可以是目录也可以是具体的java或class文件路径，默认为空，以下是参考示例.\n# 如果你有自定义标签的话，则只需在该标签对应的Handler上使用'@Tagger'和'@Taggers'注解即可配置标签了.\n#zealot.handler-locations=com.blinkfox.zealotboot.handler\n```\n\n## 简单示例\n\nZealot的详细使用可参考[这里的文档](https://blinkfox.github.io/zealot/)，以下只是最简单的示例展示。\n\n### Zealot的使用\n\n首先，在`resouces`资源目录下，新建`zealot`目录，然后在`zealot`目录中新建`student.xml`的zealot xml文件，内容如下：\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!-- 查询老师相关的SQL信息，命名空间nameSpace为zealots的根节点属性，各xml文件的nameSpace不能相同. --\u003e\n\u003czealots nameSpace=\"myTeacher\"\u003e\n\n    \u003c!-- 根据Id查询学生信息. --\u003e\n    \u003czealot id=\"queryTeacherById\"\u003e\n        SELECT * FROM t_teacher AS t WHERE\n        \u003cequal field=\"t.c_id\" value=\"id\"/\u003e\n    \u003c/zealot\u003e\n\n\u003c/zealots\u003e\n```\n\n接下来是在单元测试的Java代码中调用，代码如下：\n\n```java\n/**\n * 测试从zealot/teacher.xml中调用生成动态SQL.\n */\n@Test\npublic void testQueryueryTeacherById() {\n    SqlInfo sqlInfo = Zealot.getSqlInfo(\"myTeacher\", \"queryTeacherById\",\n            ParamWrapper.newInstance(\"id\", \"123\").toMap());\n    String expectedSql = \"SELECT * FROM t_teacher AS t WHERE t.c_id = ?\";\n\n    Assert.assertEquals(expectedSql, sqlInfo.getSql());\n    Assert.assertArrayEquals(new Object[]{\"123\"}, sqlInfo.getParamsArr());\n}\n```\n\n## 许可证\n\n`zealot-spring-boot-starter`类库遵守[Apache License 2.0][6] 许可证。\n\n## 版本更新记录\n\n- v1.0.0(2018-05-03)\n  - 新增zealot的默认快速集成和单元测试","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblinkfox%2Fzealot-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblinkfox%2Fzealot-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblinkfox%2Fzealot-spring-boot-starter/lists"}