Spring Security Servlet 應用程式 驗證 使用者名稱/密碼 密碼儲存 儲存機制 每個支援讀取使用者名稱和密碼的機制都可以使用任何支援的儲存機制 使用記憶體內驗證的簡單儲存 使用JDBC 驗證的關聯式資料庫 使用UserDetailsService的自訂資料儲存區 使用LDAP 驗證的 LDAP 儲存 章節總結 記憶體內 JDBC UserDetails CredentialsContainer UserDetailsService PasswordEncoder DaoAuthenticationProvider LDAP