spring-projects / spring-data-rest

Simplifies building hypermedia-driven REST web services on top of Spring Data repositories
https://spring.io/projects/spring-data-rest
Apache License 2.0
914 stars 560 forks source link

RepositoryRestHandlerMapping cannot autowired after init in spingboot [DATAREST-882] #1252

Open spring-projects-issues opened 8 years ago

spring-projects-issues commented 8 years ago

houbin opened DATAREST-882 and commented

i autowired "RepositoryRestHandlerMapping" and console print this -> """""Unsatisfied dependency expressed through field 'repositoryRestHandlerMapping'""""" but i can see it in console log without autowired it


Affects: 2.5.2 (Hopper SR2)

Reference URL: http://blog.csdn.net/u010244357/article/details/52386456

spring-projects-issues commented 8 years ago

Oliver Drotbohm commented

What's the reason you want to autowire that component in the first place?

spring-projects-issues commented 8 years ago

houbin commented

I want to scan all the RepositoryRestResource auto create url and save these to mysql , and config it by spring security. Springboot during init is auto invoke this and print all url info , but i can not auowired this RepositoryRestHandlerMapping in my code