Eclipse - add .jar to Dynamic Web Project

后端 未结 5 520
忘掉有多难
忘掉有多难 2020-12-08 14:55

When I use the follow code in eclipse Dynamic Web Project inside servlet , like this :

@WebServlet(\"/CreateCustomerServlet\")
publ         


        
5条回答
  •  感动是毒
    2020-12-08 15:39

    Try doing this:

    Make a directory named lib in the root directory of the proyect and put the .jar in it.

    In the WEB-INF directory, make a link to lib.

    Now, the jar would appear under WebbApp Libraries.

提交回复
热议问题