From the course: Spring: Spring MVC
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add folders and static files
- [Instructor] The next step will be to create the source and the resources folders. So lets go to the IDE again. And if you see, in this project structure, lets expand it, under the source folder you have the main folder and then you have the Webapp folder. There's nothing else. So lets first create the folders that we want to be a part of this project. So under the main folder, I'm going to create a directory. Lets name it Java. So this is the place where our source code will reside. Quickly right-click on the Project and say Mark Directory yes, Sources Root. Similarly, another folder on the main directory, which will have the name as Resources. Right-click on this, and mark this as Resources Root. Now, this folder is going to have all the static resources for your application. Which means your CSS files, your images, any java script files that you may want to insert, et cetera. So, that is the one. And…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Why use Spring MVC?3m 42s
-
(Locked)
Features of Spring MVC3m 40s
-
(Locked)
Spring MVC architecture2m 7s
-
(Locked)
Create Maven Spring MVC project3m 25s
-
(Locked)
Add folders and static files2m 27s
-
(Locked)
Java configuration for Spring MVC10m 9s
-
(Locked)
Add controllers and test the application4m 59s
-
(Locked)
Generate Spring MVC project with Spring Boot5m 13s
-
(Locked)
Add static files and view resolver5m 3s
-
(Locked)
Add controllers and test the application7m 14s
-
(Locked)
-
-
-
-
-
-
-
-