Framework for declarative programming API (DAP) is, Mars-java 3.0.2 released

The updates are as follows

  1. API completely decoupled with the Service, and the Service API parameter list parameter list may be completely inconsistent, regardless of the type or quantity, the framework will automatically API parameter value field to the parameter corresponding to the Service
  2. The code structure to make the adjustment, so that more standardized source, and maintain readability
  3. To cope with the emergence of declarative API, released a Mars-cloud 3.0.2

API and how decoupling Service

Service in the method, sample code

public List<DemoEntity> selectList(InsertEntity insertEntity, Map<String,Object> param) {
    return null;
}

API declarations, code examples

@MarsReference(beanName = "bean的name",refName = "selectList")
Object selectList(DemoEntity demoEntity);

 

Api direct request to the front end, coming parameters are automatically assigned to demoEntity in the field, the frame is automatically assigned to the data in demoEntity parameter Service,

Project official website:  http://mars-framework.com/

Guess you like

Origin www.oschina.net/news/111071/mars-java-3-0-2-released