Search in sources :

Example 1 with DataSourceProperties

use of org.springframework.boot.autoconfigure.jdbc.DataSourceProperties in project taskana by Taskana.

the class RestConfiguration method dataSourceProperties.

@Bean
@Primary
@ConfigurationProperties(prefix = "datasource")
public DataSourceProperties dataSourceProperties() {
    DataSourceProperties props = new DataSourceProperties();
    props.setUrl("jdbc:h2:mem:taskana;IGNORECASE=TRUE;LOCK_MODE=0;INIT=CREATE SCHEMA IF NOT EXISTS TASKANA");
    return props;
}
Also used : DataSourceProperties(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties) Primary(org.springframework.context.annotation.Primary) ConfigurationProperties(org.springframework.boot.context.properties.ConfigurationProperties) Bean(org.springframework.context.annotation.Bean)

Aggregations

DataSourceProperties (org.springframework.boot.autoconfigure.jdbc.DataSourceProperties)1 ConfigurationProperties (org.springframework.boot.context.properties.ConfigurationProperties)1 Bean (org.springframework.context.annotation.Bean)1 Primary (org.springframework.context.annotation.Primary)1