How can I add JAR files to the web-inf/lib folder in Eclipse?

前端 未结 11 1339
忘了有多久
忘了有多久 2020-12-01 10:21

I\'m using Eclipse and I need to be able to add Java libraries (JAR files) into my web application\'s WEB-INF/lib folder. How do I achieve this?

11条回答
  •  醉话见心
    2020-12-01 11:05

    • Add the jar file to your WEB-INF/lib folder.
    • Right-click your project in Eclipse, and go to "Build Path > Configure Build Path"
    • Add the "Web App Libraries" library

    This will ensure all WEB-INF/lib jars are included on the classpath.

提交回复
热议问题