Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设在应用程序中使用 Spring 的默认内存安全性,如何InMemoryUserDetailsManager在代码中检索实例?
InMemoryUserDetailsManager
你可以简单地注入它@Autowire:
@Autowire
@Autowired private InMemoryUserDetailsManager userDetailsManager;