1
我有一個簡單的Web應用程序,其中用戶名和密碼(輸入登錄頁面)通過使用Spring Security對LDAP進行身份驗證。禁用Spring Security(ldap認證)暫時
幾乎所有的配置都在這裏。我可以發佈所有的配置。文件如果需要。
我需要一種方法來臨時禁用此驗證以用於演示/測試等目的。理想情況下,如果登錄頁面上存在「未驗證」複選框,則應該繞過驗證。
Ofcourse我可以刪除所有Spring-Security的東西。但這並不是很整齊。
這樣做最簡單/最好的方法是什麼?謝謝。
這春天的版本,你使用? – Santosh
請檢查該http://stackoverflow.com/questions/11227464/disable-spring-security-from-spring-security-xml-file – Santosh
您可以在web.xml中評'DelegatingFilterProxy': ' springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy filter-class> ' –
Michael