Mybatis 3.3.0 中文用户指南从 XML 文件中构建 SqlSessionFactory 的实例非常简单,建议使用类路径下的资源文件进行配置。但是也可以使用任意的输入流 (InputStream)实例,包括字符串形式的文件路径或者 file:// 的 URL 形式的文件路径来配置。MyBatis 包含一个名叫 Resources 的 工具类,它包含一些实用方法,可使从 classpath 或其他位置加载资源文件更加容易。 String SqlSessionFactory 如果你更愿意直接从 Java 程序而不是 XML 文件中创建 configuration,或者创建你自己的 configuration 构建器,MyBatis 也提供 了完整的配置类,提供所有和 XML 文件相同功能的配置项。 DataSource dataSource = BlogDataSourceFactory.getBlogDataSource(); TransactionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(configuration); 注意该例中,configuration 添加了一个映射器类(mapper class)。映射器类是 Java 类,它们包含 SQL 映射语句的注解从而避免 了 XML 文件的依赖。不过,由于 Java 注解的一些限制加之某些 MyBatis 映射的复杂性,XML 映射对于大多数高级映射(比如:嵌套0 码力 | 98 页 | 2.03 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0-alpha的表也配置在分片规则中? . . . 285 7.7 ShardingSphere 除了支持自带的分布式自增主键之外,还能否支持原生的自增主键? . . 286 vii 7.8 指 定 了 泛 型 为 Long 的 SingleKeyTableShardingAlgorithm, 遇 到 ClassCastException: Integer can not cast to Long? . . . . . . . . . . . . . . . . 288 7.14 Windows 环 境 下, 运 行 ShardingSphere‐Proxy, 找 不 到 或 无 法 加 载 主 类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . . . . . . 289 7.15 Type is 扩展、分布式事务和分布式治理等功能,可适用于如 Java 同构、异构语言、云原生等各种多样化的应用 场景。 Apache ShardingSphere 旨在充分合理地在分布式的场景下利用关系型数据库的计算和存储能力,而并 非实现一个全新的关系型数据库。关系型数据库当今依然占有巨大市场份额,是企业核心系统的基石,未 来也难于撼动,我们更加注重在原有基础上提供增量,而非颠覆。 Apache ShardingSphere 50 码力 | 301 页 | 3.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0? . . . . . . . . . . . . . . 288 7.7.4 4. [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主 类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . 289 7.7.5 5. [Proxy] 在使用 ShardingSphere‐Proxy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290 7.7.11 11. [分片] 指定了泛型为 Long 的 SingleKeyTableShardingAlgorithm,遇 到 ClassCastException: Integer can not cast to Long? . . Sidecar(规划中)这 3 款既能够独立部署,又支持混合部署 配合使用的产品组成。它们均提供标准化的基于数据库作为存储节点的增量功能,可适用于如 Java 同构、 异构语言、云原生等各种多样化的应用场景。 关系型数据库当今依然占有巨大市场份额,是企业核心系统的基石,未来也难于撼动,我们更加注重在 原有基础上提供增量,而非颠覆。 1 Apache ShardingSphere document, v5.00 码力 | 385 页 | 4.26 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.0. . . . . . . . . . . . . . . . . 301 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 301 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy 规则中? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 7.8.11 [分片] 指定了泛型为 Long 的 SingleKeyTableShardingAlgorithm,遇到 ClassCastException: Integer can not cast to Long? . . Sidecar(规划中)这 3 款既能够独立部署,又支持混合部署 配合使用的产品组成。它们均提供标准化的基于数据库作为存储节点的增量功能,可适用于如 Java 同构、 异构语言、云原生等各种多样化的应用场景。 关系型数据库当今依然占有巨大市场份额,是企业核心系统的基石,未来也难于撼动,我们更加注重在 原有基础上提供增量,而非颠覆。 1 Apache ShardingSphere document, v5.10 码力 | 406 页 | 4.40 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.1. . . . . . . . . . . . . . . . . 305 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 305 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy 规则中? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 7.8.11 [分片] 指定了泛型为 Long 的 SingleKeyTableShardingAlgorithm,遇到 ClassCastException: Integer can not cast to Long? . . Sidecar(规划中)这 3 款既能够独立部署,又支持混合部署 配合使用的产品组成。它们均提供标准化的基于数据库作为存储节点的增量功能,可适用于如 Java 同构、 异构语言、云原生等各种多样化的应用场景。 关系型数据库当今依然占有巨大市场份额,是企业核心系统的基石,未来也难于撼动,我们更加注重在 原有基础上提供增量,而非颠覆。 1 Apache ShardingSphere document, v5.10 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.2. . . . . . . . . . . . . . . . . 316 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 316 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy 规则中? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318 7.8.11 [分片] 指定了泛型为 Long 的 SingleKeyTableShardingAlgorithm,遇到 ClassCastException: Integer can not cast to Long? . . Sidecar(规划中)这 3 款既能够独立部署,又支持混合部署 配合使用的产品组成。它们均提供标准化的基于数据库作为存储节点的增量功能,可适用于如 Java 同构、 异构语言、云原生等各种多样化的应用场景。 关系型数据库当今依然占有巨大市场份额,是企业核心系统的基石,未来也难于撼动,我们更加注重在 原有基础上提供增量,而非颠覆。 1 Apache ShardingSphere document, v5.10 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere 中文文档 5.2.05.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 定义 . . . . . . . 5.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 定义 . . . . . . . 5.1.3 GovernanceWatcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 定义 . . . . . . .0 码力 | 449 页 | 5.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.3.210.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395 定义 . . . . . . . 10.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 定义 . . . . . . . 396 10.2.1 DatabaseTypedSQLParserFacade . . . . . . . . . . . . . . . . . . . . . . . . . . 396 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396 定义 . . . . . . .0 码力 | 508 页 | 4.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.4.110.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415 定义 . . . . . . . 10.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 定义 . . . . . . . 416 10.2.1 DatabaseTypedSQLParserFacade . . . . . . . . . . . . . . . . . . . . . . . . . . 416 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 定义 . . . . . . .0 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档10.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 定义 . . . . . . . 10.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442 vii 定义 . . . . . 442 10.2.1 DatabaseTypedSQLParserFacade . . . . . . . . . . . . . . . . . . . . . . . . . . 442 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442 定义 . . . . . . .0 码力 | 557 页 | 4.61 MB | 1 年前3
共 19 条
- 1
- 2













