-
Notifications
You must be signed in to change notification settings - Fork 1
UsingSpringWithJUEL
Sebastian Hoß edited this page Oct 5, 2013
·
6 revisions
To use Spring together with JUEL, declare the following dependency and replace ${contracts-version}
with the latest release
<dependencies>
<dependency>
<groupId>com.github.sebhoss.contract</groupId>
<artifactId>contract-spring-juel</artifactId>
<version>${contracts-version}</version>
</dependency>
</dependencies>
then import the provided JUEL configuration
import com.github.sebhoss.contract.configuration.DefaultJUELConfiguration; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import;
@Configuration @Import(DefaultJUELConfiguration.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.