que related to java spring

I was learning java backend spring boot, but I was facing some problem in maven without it I am not able to move forward, Ex: like i got some que to add jsp functionality to add in spring boot application, now which website or resource will tell exactly these 2-3 dependency i need to add. By anyhow I got intuition to add jsp depedency but i need to add other dependency also we need to add like tomcat-jsper and jstl tag dependency now where I will these two information from internet that we need to add these two dependency also? secondly if some resource I got to know that these 2-4 dependency we need to add now I go to maven repository and search those dependency but again there are many version available which one to select how will i know. And may be these depedency version also depends on version which I am using for jdk and spring version. but I am not able to get this information from maven central repo how you figure out these dependencies will work for my current spring or jdk version /help urgent!!!
5 Replies
JavaBot
JavaBot4d ago
This post has been reserved for your question.
Hey @Rocky1904! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st4d ago
For your specific example: I wouldn't recommend using JSP with Spring as you'll probably have a few issues with that approach (e.g. it only works if you package your application as a .war file and not a .jar)
dan1st
dan1st4d ago
If you still want to do it, you might want to check out this tutorial: https://www.baeldung.com/spring-boot-jsp
Baeldung
Spring Boot With JavaServer Pages (JSP) | Baeldung
Learn how to build a web application with Spring Boot and JSP.
dan1st
dan1st4d ago
For versions: Prefer the latest ones but make sure they are compatible. The official docs might help. With Spring Boot: Try to not specify versions (except for the parent or spring-boot-dependencies) but let Spring handle the versions it can handle
JavaBot
JavaBot4d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?