Skip to content
Sebastian Hoß edited this page Oct 5, 2013 · 5 revisions

To use Spring together with UEL, declare the following dependency and replace ${contracts-version} with the latest release

<dependencies>
  <dependency>
    <groupId>com.github.sebhoss.contract</groupId>
    <artifactId>contract-spring-uel</artifactId>
    <version>${contracts-version}</version>
  </dependency>
</dependencies>

then import the provided UEL configuration

import com.github.sebhoss.contract.configuration.DefaultUELConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(DefaultUELConfiguration.class)
public class CompanySpringConfiguration {

    // .. your bindings

}

and annotate your business methods as usual using the unified expression language. Consult the example project for more details.