#14 Spring MVC :Add CSS / JS / Images to your app | Static Resources |Java + spring Live project|P-1

Опубликовано: 29 Сентябрь 2024
на канале: Selenium Express
15,492
220

In this video, we will learn to add CSS, images, js to our spring MVC app. Adding static resources to a Spring MVC app is a very easy job to do if we understand, how to create a handler. So we will be using the addResourceHandler method of webmvcconfigure interface to achieve this.

I will also provide some real-time insights to handle the spring MVC static resources. Adding so many CSS files for a particular page can cause performance issues for your application as the load time is going to increase. Similarly, we have to be careful while adding images to our webpage as adding heavy images(large in size) can increase the load time of your webpage. I will also introduce a term today called minified CSS / minified js. Minifying is just a process where we can combine multiple css files together to decrease the HTTP requests which can help us to increase the page load time.

Before we dive deeper let’s create some URL for css resources and load it to our spring MVC application.



Project Description :

Spring MVC + Spring JDBC + Spring Security ; these are the three main spring modules that we will be implementing in this project. The output of this course is going to be
a student management application that will be making with java and spring.

This java project training online series focuses on three important modules which I call Spring Boot Starter program. This course aims to help students/professionals build their first Java + spring live project and deploy that live on the cloud.

The Important goal :
Create a CRUD interface using java spring framework.
The soul of this project is a spring mvc crud example
Style the project using CSS and Bootstrap
Learn to enhance this java project by adding new requirements
Deploy the project to Amazon AWS
Go Live

Before you go on building this real-time spring project step by step, make sure that you have completed all my previous courses on spring i.e Spring Core, Spring MVC, Spring MVC Intermediate, Spring JDBC. Use the below link if you are new here.

Link to my spring core course

https://www.youtube.com/watch?v=r2Q0J...

Link to my spring MVC course

https://www.youtube.com/watch?v=zCHrZ…

Link to my spring MVC intermediate course

https://www.youtube.com/watch?v=40YaL…

Link to my spring JDBC course

https://www.youtube.com/watch?v=5j_vh…

Link to my spring security course

Note that this project comes under java projects for beginners category and aims to help you build your first real-time spring app and deploy it on the could. Once we are done with this,we will build some more advanced project in my future course.

So if you are looking for a java spring project with a step by step explanation, this is the project for you.
------------

#SpringMVCStaticResources #JavaLiveProject #AddCSS #SpringProject #SpringMVC



For more courses visit

https://www.seleniumexpress.com



Any time you are getting stuck with issues, Feel free to ask for support.

You can send mail to [email protected]



you can ping me on my Facebook page

  / seleniumexpress  



Make sure to join my private Facebook page (Ask me here)

“SeleniumExpress - Support"

  / 187000222361579  



you can ask for support in my website forum

https://www.seleniumexpress.com



Subscribe to my youtube channel

   / @seleniumexpress  



Follow me on Insta

  / selenium_express  



Music :

—————

credits : -

(channel intro)

Adventures by A Himitsu   / a-himitsu  

Creative Commons — Attribution 3.0 Unported— CC BY 3.0

http://creativecommons.org/licenses/b...

Music released by Argofox    • A Himitsu - Adventures [Royalty Free ...  

Music provided by Audio Library    • Adventures – A Himitsu (No Copyright ...