Search code examples
spring-mvcspring-tool-suite

How to add new .java source file in Spring MVC project


I have copied a new .java file in relevant src folder. But, it doesn't appear in project explorer in STS4. No option in IDE to import file.

I know this is such a simple thing. Should have obvious options there. However I am not getting clue.


Solution

  • Press F5 or execute the menu item Refresh on the project once you have added a file to the project from outside the IDE, like on the file system directly.