如何高效率开发Android一个APP?
最满意答案
APP-INF
在包含许多war和jars(例如WebApp1.war,WebApp2.war,EJB1.jar和EJB2.jar)的企业应用程序(EAR应用程序)中,假设所有这些模块都想使用一些可作为一个罐子(common.jar)。 因此,在这种情况下,最好将这个jar文件放在“APP-INF”目录下,这样我们就不需要在每个模块中放4次相同的Jar。
WEB-INF
WEB-INF是Web应用程序的专用区域,WEB-INF目录下的任何文件都不能通过指定URL直接从浏览器访问。
请参阅EAR应用程序结构;
APP-INF
In an enterprise application (EAR application) which contains many war and jars (eg.WebApp1.war, WebApp2.war, EJB1.jar and EJB2.jar.) and suppose all these Modules want to use some classes which is available as part of a Jar (common.jar). So in this case it is better to Place this jar file inside under “APP-INF” directory,that why we don't need to put the same Jar 4 times inside each and every Modules.
WEB-INF
WEB-INF is a directory that is a private area of the web application, any files under WEB-INF directory cannot be accessed directly from browser by specifying the URL.
See EAR application structure;
相关问答
更多-
APP-INF 在包含许多war和jars(例如WebApp1.war,WebApp2.war,EJB1.jar和EJB2.jar)的企业应用程序(EAR应用程序)中,假设所有这些模块都想使用一些可作为一个罐子(common.jar)。 因此,在这种情况下,最好将这个jar文件放在“APP-INF”目录下,这样我们就不需要在每个模块中放4次相同的Jar。 WEB-INF WEB-INF是Web应用程序的专用区域,WEB-INF目录下的任何文件都不能通过指定URL直接从浏览器访问。 请参阅EAR应用程序结构; ...
-
Spring maven依赖项未复制到WEB-INF / lib文件夹中(Spring maven dependencies not copied in the WEB-INF/lib folder)[2022-03-11]
添加war 。 目前,Maven不会将任何依赖项工件复制到WEB-INF/lib因为这是迄今为止用于此工件的jar包装的默认行为。 Addwar . Currently Maven doesn't copy any dependencies artifacts into WEB-INF/lib because that's a default behaviour of jar packaging you used s ... -
你正在做对.... Build Path -> Configuration Build Path -> Add External Jars 在“订单和导出”标签中点击全选... or coping file into WEB-INF/lib 然后,只需刷新您的项目并重新启动服务器,然后部署该项目将正常工作... you are doing right.... Build Path -> Configuration Build Path -> Add External Jars In "Order a ...
-
Java Build Path/Library/External Jar仅由eclipse管理,因此如果您构建war并且构建器(或者如果您在外部构建)不会将这些jar复制到WEB-INF/lib那么您将在运行时将它们丢失 当您与其他开发人员共享该代码时,或者如果您使用其他IDE,它也无济于事 更好地使用一些标准和成熟的依赖管理器/构建工具,如maven,而不是手动将库复制到WEB-INF/lib Java Build Path/Library/External Jar is only managed by ...
-
我假设你指的是Web应用程序文件夹结构根目录下的/WEB-INF 目录 。 不,它不在类路径。 /WEB-INF/classes在类路径上,而/WEB-INF/lib中的JAR文件也是。 I'm assuming you're referring to the /WEB-INF directory in the root of the web application folder structure. No, it's not in the classpath. /WEB-INF/classes is on ...
-
我不知道为什么它不会自动包含,但在构建路径中,我需要添加Ear库。 I am not sure why it wasn't automatically included, but in the build path, I needed to add the Ear library.
-
默认情况下,在grails中有资源插件。 它会映射所有资源,如css,js,图像,WEB-INF,插件和META-INF,您将在提取war文件时找到它们。 您需要在config.groovy中包含以下行,以便在静态资源中包含css,js和images。 grails.resources.adhoc.includes = ['/images/**','/js/**','/css/**'] 您还可以使用: grails.resources.adhoc.excludes = ['/WEB-INF/**'] 仅排 ...
-
原来只与符号链接的文件一起出现。 允许符号链接/别名的方式改变了 context.getInitParams().put("org.eclipse.jetty.servlet.Default.aliases", "true"); 至 context.addAliasCheck(new AllowSymLinkAliasChecker()); context是WebAppContext 。 Turned out to only occur with symlinked files. The way of ...
-
在您的情况下, WEB-INF应包含Web描述符web.xml和Spring配置文件。 虽然Hibernate配置文件hibernate.cfg.xml和其他映射文件应该在开发时放在src/main/resources里面。 http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch01.html#tutorial-firstapp 来自Hibernate的这个官方教程告诉你在src/main/resources和WEB-INF包含哪些内容的细节 ...
-
您希望使用ClassLoader而不是文件系统直接执行此操作。 基本上,不要使用File 。 我不确定如何在Groovy中执行此操作,但在普通的Java中它看起来像这样: URL config = request.getServletContext().getResource("/WEB-INF/config.groovy"); ...然后用URL做任何你想做的事。 (仅供参考, getResource方法使用webapp的ClassLoader)。 所以,也许在Groovy中可能是: ConfigSlu ...