zoukankan      html  css  js  c++  java
  • myeclipse 在web-inf/lib中导入包

    今天用myeclipse的时候发现无法在web-inf/lib导入包,如果直接在工程上导入,则进入了一个referenced libraries的文件夹里,而web-inf/lib里面是没有jar包的。
    在网上找了一些答案,下面的方法解决了疑惑:
     
    你应该尽量避免使用外部包。
    正确并且规范的做法是:在你的项目下单独创建一个lib目录(也可在WEB-INF下建lib,放到这里的话它会自动导入),把你需要的jar拷贝到这里来,并导入(工程右键refresh)。这样就不再依赖外部包了。独立。解耦。多好。
     
    不依赖外部包。
  • 相关阅读:
    ERROR: epmd error for host "yourhostname": timeout
    leetcode485
    leetcode463
    leetcode496
    leetcode344
    leetcode412
    leetcode500
    leetcode476
    leetcode557
    leetcode461
  • 原文地址:https://www.cnblogs.com/chenbg2001/p/11745356.html
Copyright © 2011-2022 走看看