{"id":15728742,"url":"https://github.com/flashvayne/mysql-mybatis-pagination","last_synced_at":"2026-02-11T19:04:31.053Z","repository":{"id":57733219,"uuid":"447494682","full_name":"flashvayne/mysql-mybatis-pagination","owner":"flashvayne","description":"A lightweight pagination interceptor based on MySQL Dialect \"SQL_CALC_FOUND_ROWS\"","archived":false,"fork":false,"pushed_at":"2022-08-19T07:36:16.000Z","size":55,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T18:46:19.673Z","etag":null,"topics":["mybatis","mysql","page"],"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/flashvayne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-13T06:51:55.000Z","updated_at":"2022-04-07T10:27:00.000Z","dependencies_parsed_at":"2022-09-26T22:11:17.501Z","dependency_job_id":null,"html_url":"https://github.com/flashvayne/mysql-mybatis-pagination","commit_stats":null,"previous_names":["flashvayne/mysql-mybatis-page"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/flashvayne/mysql-mybatis-pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fmysql-mybatis-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fmysql-mybatis-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fmysql-mybatis-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fmysql-mybatis-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flashvayne","download_url":"https://codeload.github.com/flashvayne/mysql-mybatis-pagination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fmysql-mybatis-pagination/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29341714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:58:20.535Z","status":"ssl_error","status_checked_at":"2026-02-11T18:56:44.814Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["mybatis","mysql","page"],"created_at":"2024-10-03T23:05:48.258Z","updated_at":"2026-02-11T19:04:31.037Z","avatar_url":"https://github.com/flashvayne.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven central](https://maven-badges.herokuapp.com/maven-central/io.github.flashvayne/mysql-mybatis-pagination/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.flashvayne/mysql-mybatis-pagination)\n\n[中文版文档](https://github.com/flashvayne/mysql-mybatis-page/blob/master/README_zh.md)\n\n# mysql-mybatis-pagination\nA very lightweight pagination interceptor based on MySQL Dialect \"SQL_CALC_FOUND_ROWS \u0026 FOUND_ROWS()\"  \n## Usage\n1.Load maven dependency.  \nFor SpringBoot project, interceptor will be autowired on startup, no additional configuration required.\n```pom\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.flashvayne\u003c/groupId\u003e\n    \u003cartifactId\u003emysql-mybatis-pagination\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n2.Use the following code where pagination is required\n```java\nPage.start(pageNum,pageSize);\nList\u003cUser\u003e users = userMapper.select();\nPageInfo pageInfo = Page.end(users);\nlogger.info(\"pageInfo: {}\", pageInfo);\n```\n*Notice：\nPagination only takes effect at the first query after \"Page.start()\".  \nPagination will not be applied to any query executed after line \"Page.end()\", unless \"Page.start()\" is called again to start a new paging process.  \n\nWhen you are using a thread poll and there is no query was invoked after \"Page.start()\", notice that invoke \"Page.clear()\" manually to end current paging process. So that when the current thread is invoked next time,the pagination will not take effect inexplicably.  \n(Because pagination is using ThreadLocal to take effect)\n\n# Author Info\nEmail: flashvayne@gmail.com\n\nBlog: https://vayne.cc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashvayne%2Fmysql-mybatis-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflashvayne%2Fmysql-mybatis-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashvayne%2Fmysql-mybatis-pagination/lists"}