在WEB-INF/weblogic.xml中进行如下配置:
<container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor>