Reputation: 730
Usually when I Ctrl + click the CRUDRepository
in the interface shown like below in Spring Tool Suite, the source automatically gets downloaded.
public interface StudentImpl extends CrudRepository<Student, Integer>
But when I am trying this thing on eclipse it doesn't work. It does work on my colleague's pc. How can I download source by just Ctrl + click? Currently I am working on Spring Boot. I have added the preferences screenshot below:
RE @nhu: I have tried doing the same but it didn't download anything.
Source not found The JAR file Z:\Users\ASharma20.m2\repository\org\springframework\data\spring-data-commons\2.0.6.RELEASE\spring-data-commons-2.0.6.RELEASE.jar has no source attachment.
You can attach the source by clicking Attach Source below:
Upvotes: 1
Views: 564
Reputation: 730
Sometimes going to maven --> Download Sources doesn't work & never downloads the source.
For this we need additional step as shown below:
Upvotes: 1