首页 \ 问答 \ 在另一个java Web项目中包含WAR文件(Including WAR file in another java web project)

在另一个java Web项目中包含WAR文件(Including WAR file in another java web project)

如何在另一个Web项目中包含WAR文件? 如果可能的话,我们需要使用哪个Context来命中WAR文件中的服务,以及我们需要在哪里放置(位置)WAR文件? 我告诉我的主管,根据我的理解,这是不可能的,因为服务器将无法将请求root解析为放置在包装器web项目中的WAR。 如我错了请纠正我。 示例 - 考虑我们有两个Web项目A和B.我想为项目B创建WAR并将其放在项目A中。谢谢。


How to include a WAR file in another web project? If this is possible which Context do we need to use to hit services in WAR file and where do we need to place(location) the WAR file? I informed my lead that this is not possible as per my understanding, as server won't be able to resolve the request root to WAR which is placed in wrapper web project. Correct me if I'm wrong. Example - Consider we have two web projects A and B. I want to create WAR for project B and place it in project A. Thank you.


原文:https://stackoverflow.com/questions/17357169
更新时间:2021-08-17 12:08

最满意答案

我不熟悉Atom,但是使用典型的编辑器,您可以通过用空字符串替换它来删除找到的项目。


I'm not familiar with Atom, but with a typical editor you would remove the found item by replacing it with an empty string.

相关问答

更多
  • find
  • 不确定这是最好的解决方案,我可以这样做: sed "s/[\]'/\"\'\"/g" file.txt (将反斜杠字符放在字符范围内,这样它就不会干扰以下引号,并用双引号保护) 或者只是扩展你的语法,没有引号但使用几乎相同的技巧: sed -e s/[\\]\'/"\'"/g file.txt Not sure it's the best solution,I could do it like this: sed "s/[\]'/\"\'\"/g" file.txt (p ...
  • str = "Debit Card .... PRKG ADMIN CHICAGO IL 16168" 你可以通过提取第二部分 str = str.sub(/.*#\d+\s*/, '') = "UIC CAMPUS PRKG ADMIN CHICAGO IL 16168" 或者,您可以在字符串上使用split str = str.split(/#\d+\s*/).last = "UIC CAMPUS PRKG ADMIN CHICAGO IL 16168" 然后删除城市,州和邮政编码 str = str. ...
  • 你很接近,你想使用字符类 : Ctrl + H. 找到: ([AZ]+)-([AZ]+)-(\d+)-(\d+) 替换为: $1$2$3$4 全部替换 [A-]+表示一个或多个大写字母,如果你想匹配小写,请使用[A-Za-z]+ You're close, you want to use character class: Ctrl+H Find what: ([A-Z]+)-([A-Z]+)-(\d+)-(\d+) Replace with: $1$2$3$4 Replace all [A-]+ means ...
  • 您可以使用str.partition在第一个之前分割数字: with open('data.txt') as fin, open('dataFinal.txt', 'w') as fout: fout.writelines(line.partition(':')[0] + '\n' for line in fin) 不是我们在这里使用with所以文件会自动关闭,并且一个生成器表达式可以循环遍历fin ,然后将其写回到fout中,并附加一个换行符。 您可能希望指定编码: import io wit ...
  • 当你想在一个字符串中解析一个双引号时 ,你必须在引号之前放一个斜杠: “\”“不管怎么说在这个例子中都需要它,因为它已经嵌入到字符串中。你问题的解决方案: string a = "\"address\": {\r\n \"label\":"; string b = "{\r\n \"label\":"; a = a.Replace("\"address\": ", ""); When you want to parse a double quote in ...
  • 我可能是错的,但听起来你可能想要一个集合 。 我看到这样的一个起点: Sub RemoveWords(DeleteFromCol As Range, FindCol As Range) Dim words As New Collection Dim r As Range Dim word As Variant For Each r In FindCol words.Add (r.Value2) Next r For Each r In DeleteFromCol ...
  • 我最近一直试图取得类似的结果。 我仍然是regexp的新手,但这就是我完成它的方式。 var f1 = ' Text Book of Medical Parapsychology ', f2 = ' Book for Medical science ', f3 = (f1+f2).match(/[^ ]+/g).join(';'), exclude = ['for','of','a','an','it']; exclude.forEach(function(word){ ...
  • 我不熟悉Atom,但是使用典型的编辑器,您可以通过用空字符串替换它来删除找到的项目。 I'm not familiar with Atom, but with a typical editor you would remove the found item by replacing it with an empty string.
  • 在Notepad ++中,您可以使用(ctrl + h,正则表达式搜索模式): \r\n.*\r\n<\/data>\r\n 由于VS所谓的“正则表达式”是一场噩梦,我再也不会回答这类问题了。 但是你要去VS 2010: :b*\\n:b*.*\n:b*.*data\> 这不太好看。 In Notepad++, you can use (ctrl+h, regular expression search mode): ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)