/WEB-INF/classes vs /WEB-INF/lib

后端 未结 3 869
既然无缘
既然无缘 2021-01-01 15:20

I\'d like to package my Java EE6 web classes (beans, filters, servlets) into jar and place it into /WEB-INF/lib/ directory along with other utility

3条回答
  •  感动是毒
    2021-01-01 15:35

    I'd go for /WEB-INF/classes. It allows you to run your application in debug mode and hot-swap classes on change. If you package everything as a jar, you'd have to repackage and redeploy the app every time you change a class.

提交回复
热议问题