{"id":37016473,"url":"https://github.com/kukume/ktor-spring-boot-starter","last_synced_at":"2026-01-14T01:51:47.454Z","repository":{"id":57736617,"uuid":"473659328","full_name":"kukume/ktor-spring-boot-starter","owner":"kukume","description":"ktor-spring-boot-starter","archived":false,"fork":false,"pushed_at":"2024-07-10T12:41:04.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T22:05:40.726Z","etag":null,"topics":["kotlin","ktor","ktor-server","spring-boot","spring-boot-starter"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/kukume.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,"zenodo":null}},"created_at":"2022-03-24T15:14:39.000Z","updated_at":"2024-08-02T17:03:08.000Z","dependencies_parsed_at":"2023-12-17T08:26:10.437Z","dependency_job_id":"b82bc166-8ced-49ad-9bb0-2e8ee3c119fd","html_url":"https://github.com/kukume/ktor-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kukume/ktor-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kukume%2Fktor-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kukume%2Fktor-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kukume%2Fktor-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kukume%2Fktor-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kukume","download_url":"https://codeload.github.com/kukume/ktor-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kukume%2Fktor-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"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":["kotlin","ktor","ktor-server","spring-boot","spring-boot-starter"],"created_at":"2026-01-14T01:51:46.889Z","updated_at":"2026-01-14T01:51:47.440Z","avatar_url":"https://github.com/kukume.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ktor-spring-boot-starter\n\nktor：https://ktor.io/\n\n整合`Ktor`并提供一些扩展函数，版本号前缀与ktor官方一致\n\nJSON序列化使用SpringBoot的ObjectMapper，需要创建一个ObjectMapper的bean\n\n\n### 使用\n\n#### 引入（gradle.kts）\n\n引入\n\n```kotlin\nrepositories {\n    maven(\"https://nexus.kuku.me/repository/maven-public/\")\n    mavenCentral()\n}\n\n\nimplementation(\"me.kuku:ktor-spring-boot-starter:2.3.12.0\")\n```\n\n#### Routing\n\n```kotlin\n\n@Component\nclass KtorRouting {\n    \n    fun Routing.ro() {\n        route(\"\") {\n            get {\n                call.respond(\"Hello World\")\n            }\n        }\n    }\n}\n\n```\n\n#### Module（异常处理）\n\n```kotlin\n@Component\nclass KtorModule {\n    \n    fun Application.statusPage() {\n        install(StatusPages) {\n            exception\u003cThrowable\u003e { cause -\u003e\n                call.respond(HttpStatusCode.InternalServerError, Result.failure(cause.message ?: \"服务器内部错误\", null))\n            }\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkukume%2Fktor-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkukume%2Fktor-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkukume%2Fktor-spring-boot-starter/lists"}