Skip to main content

Overview

Atoti What-If configuration is managed through properties with the atoti.what-if prefix. These properties can be set in application.yml or application.properties.

Property reference

General properties

Security properties

Security type options

Distribution properties

Configuration examples

Default configuration

No configuration is required for a standalone application with Spring Security:

Disable security

Disable branch permissions

Distributed mode

Full configuration example

Required beans

The Spring Boot Starter requires two beans from your application:

IDatabaseService

Provided by your Atoti Server application. This bean is used by the simulation engine to execute database operations. When distribution is enabled, a RestDistributedDatabaseService is automatically created to handle communication with data nodes. Set atoti.what-if.distribution.create-distributed-service to false if you want to provide your own distributed database service implementation.

IWhatIfPersistenceProperties

Provides Hibernate configuration for simulation persistence. The bean must return a Map<String, String> of Hibernate properties.
The starter uses these properties to create a SessionFactory bean (named whatIfSessionFactory). If you need more control over SessionFactory configuration (such as adding interceptors or event listeners), you can override the whatIfSessionFactory bean directly. See How to customize auto-configured beans for details.

Full generated reference

The table below is generated from the @ConfigurationProperties Java sources at build time, so it is always in sync with the code. Use it as the authoritative reference when the curated tables above don’t cover a property.