Axis2——web服务读取jar方式

Axis2——web服务读取jar模式Axis2 web服务要使用持久层框架,那么就会涉及到Entity的导入但是Entity放到aar

Axis2——web服务读取jar模式

Axis2 web服务要使用持久层框架,那么就会涉及到Entity的导入

但是Entity放到aar中,axis却找不到,所以那阅读了官网,发现了这个和大家分享,下面的方法就能解决上面的问题

?

在server.xml中加入

其中ServiceTCCL中属性有:default,composite,service

default读axis2/lib

composite读包括上面的,加上aar中的

service 包括上面的,加上tomcat/lib

<serviceGroup>  <service name="MyService" class="sample.my.service">    <parameter name="ServiceTCCL">composite</parameter>    ...  </service></serviceGroup>