English 中文(简体)
静态档案服务、发展和光盘
原标题:Servlets, development, and a CDN for static files
  • 时间:2010-07-07 18:14:54
  •  标签:
  • maven-2
  • cdn

我在贾瓦现场工作(金库里、瓦凯特、马文、春天、西伯利亚),我们刚刚开始利用CDN在生产服务器上提供固定档案。 我们利用一名持地人从事裁谈会工作,并在每个固定档案中添加提及静态档案的内容。 持股人通过Maven的房地产过滤器取而代之。

因此,对于裁谈会所服务的每一个固定档案,我们都有这样的情况:

<img src=“${placeholder}/images/dogs/rex.jpg”/>

生产用“,对于发展环境,则替换为空白。

...... 是否有更好的办法? 在全球范围内,在静态档案中增加一名马文特地方持有人似乎不寻常。 还需要为今后出现的每一个新形象添加这一信息。 此外,对静态档案的改动经过了Maven建筑工程,这些变化将在浏览器上显示,而且在某些环境中,这种变化减缓了发展速度。 这可能是可以避免的,但首先似乎仍没有必要。

问题回答

当我们用这种方式做时,我们就会有 c子的ur子,它会受到范围很广的春天豆的侵扰,然后,你就可以将这种财产注入你的应用环境。 然后,我们在小屋子里用EL表示这种财产。





相关问题
Derby gets stuck closing?

I ve got unit tests (in maven) that use derby. At the end of the test run, there is a very long pause, with these log messages before the pause. INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:...

Execute goal on parent after children complete

I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install or whatever), maven will run all the goals for the parent project before ...

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Java Equivalent of distcc

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases. An increasing number of our large projects ...

Maven Assembly Problem

I have a maven multiple-module project, which is giving me headaches in the assembly:assembly phase. I have a module which has an assembly defined in it which works fine when I invoke mvn assembly:...

热门标签