{"id":19237513,"url":"https://github.com/core-lib/xjar-agent-hibernate","last_synced_at":"2025-07-23T17:06:55.214Z","repository":{"id":47544538,"uuid":"167516775","full_name":"core-lib/xjar-agent-hibernate","owner":"core-lib","description":"XJar Adapter For Spring Boot With Hibernate","archived":false,"fork":false,"pushed_at":"2019-01-25T09:25:04.000Z","size":10,"stargazers_count":13,"open_issues_count":2,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T06:41:49.887Z","etag":null,"topics":[],"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/core-lib.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":"2019-01-25T08:57:37.000Z","updated_at":"2024-05-31T08:35:50.000Z","dependencies_parsed_at":"2022-09-23T12:51:21.863Z","dependency_job_id":null,"html_url":"https://github.com/core-lib/xjar-agent-hibernate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/core-lib/xjar-agent-hibernate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-lib%2Fxjar-agent-hibernate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-lib%2Fxjar-agent-hibernate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-lib%2Fxjar-agent-hibernate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-lib%2Fxjar-agent-hibernate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/core-lib","download_url":"https://codeload.github.com/core-lib/xjar-agent-hibernate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-lib%2Fxjar-agent-hibernate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266717709,"owners_count":23973384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-09T16:27:05.940Z","updated_at":"2025-07-23T17:06:55.191Z","avatar_url":"https://github.com/core-lib.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xjar-agent-hibernate\nXJar Adapter For Spring Boot With Hibernate\n\n## 功能说明\n由于在 Spring Boot 项目中使用了JPA且实现为Hibernate时，Hibernate自己解析加密后的Jar文件导致无法正常启动的问题。\n该模块采用 Java Agent 技术对org.hibernate.boot.archive.internal.JarFileBasedArchiveDescriptor 类中的resolveJarFileReference() 方法进行拦截并将其返回结果进行包装，\n让Hibernate直接得到解密后的class，也就解决了Spring Boot + Hibernate 无法适配XJar的问题。\n\n## 使用说明\n1. clone本项目，使用 mvn clean package 编译出 xjar-agent-hibernate-${version}.jar 文件\n2. 采用 java -javaagent:xjar-agent-hibernate-${version}.jar -jar your-spring-boot-app.jar 命令启动","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-lib%2Fxjar-agent-hibernate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcore-lib%2Fxjar-agent-hibernate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-lib%2Fxjar-agent-hibernate/lists"}