Revision 47bf9558
Added by Andreas Müller about 6 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/CdmRepository.java | ||
---|---|---|
19 | 19 |
import org.springframework.beans.factory.annotation.Autowired; |
20 | 20 |
import org.springframework.context.ApplicationContext; |
21 | 21 |
import org.springframework.context.ApplicationContextAware; |
22 |
import org.springframework.context.annotation.Lazy; |
|
22 | 23 |
import org.springframework.orm.hibernate5.HibernateTransactionManager; |
23 | 24 |
import org.springframework.security.authentication.ProviderManager; |
24 | 25 |
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; |
... | ... | |
145 | 146 |
//@Autowired |
146 | 147 |
private DataSource dataSource; |
147 | 148 |
@Autowired |
149 |
@Lazy |
|
148 | 150 |
private ProviderManager authenticationManager; |
149 | 151 |
@Autowired |
150 | 152 |
private IUserService userService; |
Also available in: Unified diff
make authenticationManager lazy to avoid circals during start up