Eclipse - add .jar to Dynamic Web Project

后端 未结 5 524
忘掉有多难
忘掉有多难 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:19

    As your screenshot shows, the mysql jar doesn't appear under the Web App Libraries node. Paste the jar in WebContent/WEB-INF/lib, and it will be automatically added to the build path and to the runtime classpath of the webapp (and it will appear under Web App Libraries).

提交回复
热议问题