SpringBoot文档之Data的阅读笔记

Databases

  • SQL Databases
    SpringBoot提供组件:

    • spring-boot-starter-data-jpa
    • spring-boot-starter-jdbc
    • spring-boot-starter-data-jdbc

    关键类,如下:

    • JdbcClient
    • JdbcTemplate
    • DataSourceBuilder
    • OracleDataSource
    • SimpleDriverDataSource
    • DatabaseClient

    相关的配置参数,样例如下:

    spring:
        datasource:
            url: "jdbc:mysql://localhost/test"
            username: "dbuser"
            password: "dbpass"
    

    参数的说明,可参考DataSourceProperties

    数据库链接池的优先级:

参考资料

NoSQL

  • Working with NoSQL Technologies

    • Cassandra
      SpringBoot提供spring-boot-starter-data-cassandra
    • Couchbase
      SpringBoot提供spring-boot-starter-data-couchbasespring-boot-starter-data-couchbase-reactive
    • Elasticsearch
      SpringBoot提供spring-boot-starter-data-elasticsearch
    • GemFire or Geode
    • LDAP
      SpringBoot提供spring-boot-starter-data-ldap
    • MongoDB
      SpringBoot提供spring-boot-starter-data-mongodbspring-boot-starter-data-mongodb-reactive
    • Neo4J
      SpringBoot提供spring-boot-starter-data-neo4j
    • Redis
      SpringBoot提供spring-boot-starter-data-redisspring-boot-starter-data-redis-reactive

参考资料

posted @ 2024-08-24 21:34  jackieathome  阅读(7)  评论(0编辑  收藏  举报