Spring Boot中使用MongoDB的鏈接池配置

說明 Spring Boot中經過依賴spring-boot-starter-data-mongodb,來實現spring-data-mongodb的自動配置。 可是默認狀況下,Spring Boot 中,並無像使用MySQL或者Redis同樣,提供了鏈接池配置的功能。所以,咱們須要自行重寫 MongoDbFactory,實現MongoDB客戶端鏈接的參數配置擴展。java 須要說明的是,Mong
相關文章
相關標籤/搜索