Run JSP in Spring Boot App | Call JSP from Controller in Spring Boot|Spring Boot JSP

preview_player
Показать описание
#SpringBootTutorial
#SpringBootJSP
#SpringBootSetup

2020:07:18 23:00:00

#SetupSpringBootApp

#SpringBootProjectStructure

We can easily run JSP in Spring Boot Application by following the below simple steps.

Simplification of Steps
Step 1: Create a JSP as below in the web app folder
Step 5: Add Dependency to your POM.XML file to compile your and run JSP in Spring Boot.
Note : If the build has failed and showing errors do the following:

Right Click on the Project
Go to Maven
Select Update Project
Check on Force Update of Snapshot/Releases and Click OK
Step 6: Do run maven clean install in your Eclipse or STS tool

Step 7: Run as Spring Boot App

Step 8: Done

Follow us on Facebook
Рекомендации по теме
Комментарии
Автор

For all those who doesnt have option for JSP follow below steps.
1. Go to File Menu
2. Click on New
3. Choose File and click on Next
4. Name your file with the .jsp extension. For example: if my file name is index, i would name it as index.jsp
5. Thats it.

ManikanthVanka
Автор

thank you very much I have struggling from whole day now get the soltuion.

vishalpatil
Автор

Thank you very much, I got stucked for whole day and tried many methods, but yours helped

rathun
Автор

This video helped me remove my error in you

shreyabhattad
Автор

Thanks bro, I tried so many solutions but yours worked for me . cheers

DeepakSharma-svux
Автор

thankyou so much i tried to search different method but jsp page not load but with modelview it is loaded

harshit___taneja
Автор

Sir when I create webapp folder n then New for the jsp file, in my STS no web folder is coming in which HTML, jsp should be present, , please reply

nitugiri
Автор

i cant find jsp file option inside wizrd??

RajGupta-lqyg
Автор

Sir I am not getting option to add jsp page

avinashshukla
Автор

Please help me
I am not getting option on src/

avinashshukla
Автор

iam unable to find jsp file and i followed ur steps but iam not find jsp file

ashokreddy
Автор

How can I display the .jsp page on browser using @RestController annotation? in springboot... I am getting the jsp page name on browser and not .jsp page while using @RestController

girishgawai__
welcome to shbcf.ru