Question Details

No question body available.

Tags

java spring-boot griddb

Answers (1)

March 19, 2026 Score: 1 Rep: 888 Quality: Low Completeness: 60%

1. Dependency Management

Add the GridDB Java Client to your pom.xml. If you want Spring-like abstractions, use the official GridDB Spring Data support, but the raw Java Client is often preferred for performance.


    com.github.griddb
    gridstore
    5.5.0 

2. Configuration (application.yml)

GridDB Cloud requires specific credentials and the notification provider URL provided in your Cloud console.

griddb:
  cluster: "yourclustername"
  user: "yourusername"
  password: "yourpassword"
  notification-url: "https://cloud-provider-url/notification/provider"

3. The GridStore Bean

Don't instantiate the store manually in every service. Create a configuration class to manage the lifecycle.

@Configuration
public class GridDbConfig {

@Value("${griddb.notification-url}") private String notificationUrl;

@Bean public GridStore gridStore() throws GSException { Properties props = new Properties(); props.setProperty("notificationProvider", notificationUrl); props.setProperty("clusterName", "yourcluster"); props.setProperty("user", "youruser"); props.setProperty("password", "your_password");

return GridStoreFactory.getInstance().getGridStore(props); } }