Apache ShardingSphere 中文文档 5.1.0
53 4.6.4 核心概念 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 高可用类型 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 动态读写分离 . . . . . . . . . . . . . . . . . . . . . . . 301 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 301 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy . . . . . 303 7.8.12 [分片、PROXY] 实现 StandardShardingAlgorithm 自定义算法时,指定 了 Comparable 的具体类型为 Long, 且数据库表中字段类型为 bigint,出现 ClassCastException: Integer can not cast to Long 异常。 . . . . 303 7.8.13 [分片]0 码力 | 406 页 | 4.40 MB | 1 年前3Apache ShardingSphere 中文文档 5.1.1
53 4.6.4 核心概念 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 高可用类型 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 动态读写分离 . . . . . . . . . . . . . . . . . . . . . . . 305 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 305 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy . . . . . 307 7.8.12 [分片、PROXY] 实现 StandardShardingAlgorithm 自定义算法时,指定 了 Comparable 的具体类型为 Long, 且数据库表中字段类型为 bigint,出现 ClassCastException: Integer can not cast to Long 异常。 . . . . 307 7.8.13 [分片]0 码力 | 409 页 | 4.47 MB | 1 年前3Mybatis 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 年前3Apache ShardingSphere 中文文档 5.1.2
54 4.6.4 核心概念 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 高可用类型 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 动态读写分离 . . . . . . . . . . . . . . . . . . . . . . . 316 7.8.4 [Proxy] Windows 环境下,运行 ShardingSphere‐Proxy,找不到或无法加载主类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . 316 7.8.5 [Proxy] 在使用 ShardingSphere‐Proxy . . . . . 318 7.8.12 [分片、PROXY] 实现 StandardShardingAlgorithm 自定义算法时,指定 了 Comparable 的具体类型为 Long, 且数据库表中字段类型为 bigint,出现 ClassCastException: Integer can not cast to Long 异常。 . . . . 318 7.8.13 [分片]0 码力 | 446 页 | 4.67 MB | 1 年前3Apache 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 20. [其他] 使用 SQLSever 和 PostgreSQL 时,聚合列不加别名会抛异常? . . . . 293 7.7.21 21. [其他] Oracle 数据库使用 Timestamp 类型的 Order By 语句抛出异常提示 “Order by value must implements Comparable”? . . . . . . . . . . . . . . . . 293 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(dataSourceMap, configurations0 码力 | 385 页 | 4.26 MB | 1 年前3Apache ShardingSphere 中文文档 5.2.0
35 3.4.6 核心概念 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 高可用类型 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 动态读写分离 . . . . . . 5.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 定义 . . . . . . . 5.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 定义 . . . . . . .0 码力 | 449 页 | 5.85 MB | 1 年前3Apache ShardingSphere 中文文档 5.4.1
10.1.1 StandalonePersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415 定义 . . . . . . . 10.1.2 ClusterPersistRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 定义 . . . . . . . 416 10.2.1 DatabaseTypedSQLParserFacade . . . . . . . . . . . . . . . . . . . . . . . . . . 416 全限定类名 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 定义 . . . . . . .0 码力 | 530 页 | 4.49 MB | 1 年前3Apache 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 年前3Apache ShardingSphere 中文文档 5.0.0-alpha
使用 SQLSever 和 PostgreSQL 时,聚合列不加别名会抛异常? . . . . . . . . . . . . . . 286 7.10 Oracle 数据库使用 Timestamp 类型的 Order By 语句抛出异常提示“Order by value must implements Comparable”? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 7.14 Windows 环 境 下, 运 行 ShardingSphere‐Proxy, 找 不 到 或 无 法 加 载 主 类 org.apache.shardingsphere.proxy.Bootstrap,如何解决? . . . . . . . . . . . . . . . . . 289 7.15 Type is 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(dataSourceMap, configurations0 码力 | 301 页 | 3.44 MB | 1 年前3传智播客 mybatis 框架课程讲义
null; ResultSet resultSet = null; try { //加载数据库驱动 Class.forName("com.mysql.jdbc.Driver"); //通过驱动管理类获取数据库链接 connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/mybatis?charac terEncoding=utf-8" sql执行输入参数进行定义,包括 HashMap、基本类型、pojo,Executor 通过 Mapped Statement 在执行 sql 前将输入的 java 对象映射至 sql 中,输入参数映射就 是 jdbc 编程中对 preparedStatement 设置参数。 7、 Mapped Statement 对 sql执行输出结果进行定义,包括 HashMap、基本类型、pojo,Executor 通过 SqlMapConfig.xml 是 mybatis 核心配置文件,上边文件的配置内容为数据源、事务管理。 1.6.6 第五步:po 类 Po 类作为 mybatis 进行 sql 映射使用,po 类通常与数据库表对应,User.java 如下: Public class User { private int id; private String username;//0 码力 | 75 页 | 1.16 MB | 1 年前3
共 102 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11