EDEN-MACE 1.5.1 update, add third-party api

<dependency>
			<groupId>com.dist.api</groupId>
			<artifactId>dist-api</artifactId>
			<version>1.5.1</version>
</dependency>

EDEN-MACE is a flexible set of management commission of the distribution management system, which covers and summed up the prevailing distribution model that allows distribution easier.

The update is automatically loaded container using the spring mechanism, the new distribution api, as long as you are a spring boot project, need only look a few steps, you can quickly be embedded in your distribution system the current system.

1. The introduction of Jar package, of course, you need a local package, or can not find the jar package

<dependency>
			<groupId>com.dist.api</groupId>
			<artifactId>dist-api</artifactId>
			<version>1.5.1</version>
		</dependency>

2. Fill the service

 @Autowired
    SendToDistService sendToDistService;

3. The method of calling service in the docking distribution system

  DistResult result= sendToDistService.getUserInfo(prefix,userId);

 

Source Interpretation:

This function is to use a spring mechanism spi, automatic injection at spring.factories bean, after the introduction of the spring can be automatically injected Boot project. Specific implementation may refer to the source.

Guess you like

Origin www.oschina.net/news/109692/eden-mace-1-5-1-released