1
我想重寫的兩個門戶impl.jar中類NtlmFiler.java和NtlmPostFilter.java,我已經創建了一個EXT-插件項目,並把我的在ext-impl/src中定製寫入的類,但是我無法配置我的spring.xml文件來使用我新編寫的類而不是portal-impl類,也許我完全錯誤地這樣做。如何覆蓋門戶IMPL罐子班Liferay的EXT-插件
我EXT-spring.xml代碼:
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<bean id="com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter"
class="com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter">
<property name="ntlmFilter">
<bean class="com.sso.ntlm.filter.CustomNtlmFilter">
<property name="CustomNtlmFilter" ref="customNtlmFilter" />
</bean>
</property>
</bean>
<bean id="com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter"
class="com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter">
<property name="ntlmPostFilter">
<bean class="com.sso.ntlm.filter.CustomNtlmPostFilter">
<property name="CustomNtlmPostFilter" ref="customNtlmPostFilter" />
</bean>
</property>
</bean>
注:The idea is to solve this problem
作品像一個魅力:D –