濡傛湁浠ヤ笅鎺ュ彛
package com.efs.xfire.pojo;
import java.util.*;
public interface CollectionsDemo {
public int getCollectionsRowCount(List list);
public List getUserList();
}
鍦ㄨ鎺ュ彛鐨勫悓涓鍖呬笅錛岄渶榪涜濡備笅閰嶇疆
<?xml version="1.0" encoding="UTF-8"?>
<mappings>
<mapping>
<method name="getCollectionsRowCount">
<parameter index="0" componentType="java.lang.String"/>
</method>
<!-- 榪斿洖鐨勭被鍨嬫槸Map鐨勮瘽錛屽仛娉曞拰List涓鏍楓備絾瀹氫箟鐨勭被鍨嬶紝鏄疢ap涓殑Value閮ㄥ垎 -->
<method name="getUserList">
<return-type componentType="com.efs.xfire.entity.User"/>
</method>
</mapping>
</mappings>
鍙鏄被涓殑鏂規硶榪斿洖綾誨瀷鎴栧弬鏁版槸瀵硅薄綾誨瀷錛堥櫎java鍩烘湰綾誨瀷澶栨垨綾婚泦錛夐兘闇瑕佸仛鐩稿叧鐨勯厤緗?br>
瑕佷綔涓篧S鍙戝竷鐨勭被鍔$被錛岄兘闇瑕佸湪services.xml鏂囦歡涓綔鐩稿簲鐨勯厤緗?br>
<beans xmlns="http://xfire.codehaus.org/config/1.0">
<service>
<name>HelloWorldService</name>
<namespace>http://efs.com/HelloWorldService</namespace>
<serviceClass>
com.efs.xfire.pojo.HelloWorldService
</serviceClass>
<implementationClass>
com.efs.xfire.pojo.HelloWorldServiceImpl
</implementationClass>
</service>
</beans>

]]>