简体   繁体   中英

Spring Security + CDI/Inject

Im building an applications with JSF + Hibernate + CDI + Spring Security.

I want to know if there is anyway to Inject DaoService into Spring Security custom provider, because this doesnt seems to work. The object always returns null, when i try to @Inject inside my login provider class (authentication-provider).

Thanks in advance, Alexandre Rocco

我想你可以使用EE utils的从春包导入到EJB的Spring上下文如下: <jee:jndi-lookup jndi-name="ejb name" expected-type="tst.ExpectedClass"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM