When using the Spring Boot Starter, configuration is managed through application.yml or application.properties. See the configuration reference for all available atoti.what-if.* properties.
Persistence configuration
Hibernate properties for simulation persistence are provided through an IWhatIfPersistenceProperties bean. This bean can load properties from any source, such as a properties file, environment variables, or hardcoded values.
Example loading from a properties file:
@Beanpublic IWhatIfPersistenceProperties whatIfPersistenceProperties(@Value("classpath:hibernate.properties") Resource resource)throws IOException { Properties props =new Properties(); props.load(resource.getInputStream());return()-> props.entrySet().stream().collect(Collectors.toMap( e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue())));}
Legacy configuration files
Location: the application-specific src/main/resources