How can I add dependencies to spring mvc without maven?

is currently doing sprin mvc exercises and has created a spring mvc project directly with idea. Then you need to add the dependencies of the servler package when you create a controller.

found on the Internet, basically using maven to add dependencies, now very curious how not to use maven to add dependencies?

the environmental background of the problems and what methods you have tried

I asked. Basically, I advised to use maven, directly, but I couldn"t restrain my curiosity. I wanted to ask.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
@ Override

public ModelAndView handleRequest(
    javax.servlet.http.HttpServletRequest httpServletRequest,
    javax.servlet.http.HttpServletResponse httpServletResponse)
    throws Exception {

what result do you expect? What is the error message actually seen?

Dec.13,2021

for web applications, just put the required jar package in the WEB-INF/lib directory, but maven is really better.


manually add dependencies:

IDEA--> File--> Project Structure--> Modules--> Dependencies
Click the plus sign

Menu