{"id":18559049,"url":"https://github.com/linux-china/mybatis-demo","last_synced_at":"2025-04-10T02:30:37.829Z","repository":{"id":2659484,"uuid":"47095778","full_name":"linux-china/mybatis-demo","owner":"linux-china","description":"MyBatis Demo with spring-boot-starter-mybatis integration","archived":false,"fork":false,"pushed_at":"2025-02-02T10:00:57.000Z","size":80,"stargazers_count":9,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:51:12.233Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2015-11-30T04:45:19.000Z","updated_at":"2025-02-02T10:01:01.000Z","dependencies_parsed_at":"2024-11-06T21:54:59.284Z","dependency_job_id":null,"html_url":"https://github.com/linux-china/mybatis-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmybatis-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmybatis-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmybatis-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmybatis-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/mybatis-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144157,"owners_count":21054876,"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","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-06T21:41:55.908Z","updated_at":"2025-04-10T02:30:37.518Z","avatar_url":"https://github.com/linux-china.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"MyBatis Demo\n============================================\nIntegration with mybatis-spring-boot-starter\n\n### How to use?\n\n* Add MyBatis configuration in application.properties\n\n```properties\nmybatis.config-location=classpath:/mybatis-config.xml\n```\n\n* Add MyBatisMapperConfiguration to create mapper bean for domain Repository interface.\n\n```java\n\n@Configuration\npublic class MyBatisMapperConfiguration {\n    @Bean\n    public MapperFactoryBean\u003cCityRepository\u003e providerRepository(SqlSessionFactory sqlSessionFactory) {\n        MapperFactoryBean\u003cCityRepository\u003e factoryBean = new MapperFactoryBean\u003c\u003e(CityRepository.class);\n        factoryBean.setSqlSessionFactory(sqlSessionFactory);\n        return factoryBean;\n    }\n\n}\n```\n\n### Integration\n\n* FlywayDB: Database Migrations made Easy https://flywaydb.org/\n* DataBase Rider: https://database-rider.github.io/database-rider/  please refer DateTimeReplacer to datetime replace\n* MyBatis integration with Spring Boot: https://github.com/mybatis/spring-boot-starter\n* DbUnit: http://dbunit.sourceforge.net/\n* mybatis-spring-native: https://github.com/joshlong/mybatis-spring-native\n\n### References\n\n* MyBatis Home: https://github.com/mybatis/mybatis-3\n* MyBatisX IntelliJ IDEA plugin: https://plugins.jetbrains.com/plugin/10119-mybatisx","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fmybatis-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Fmybatis-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fmybatis-demo/lists"}