在另一个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
最满意答案
我不熟悉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.
相关问答
更多-
LINUX 如何查看JPG文件[2022-06-13]
find -
查找和替换: \'(Find and replace: \')[2023-08-21]
不确定这是最好的解决方案,我可以这样做: 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 ...
-
如何在指定的Python定界符后查找和替换/删除文本?(How to find and replace/remove text after a specified delims with Python?)[2022-06-13]
您可以使用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 ... -
删除“和\使用替换(Remove " and \ using Replace)[2023-04-23]
当你想在一个字符串中解析一个双引号时 ,你必须在引号之前放一个斜杠: “\”“不管怎么说在这个例子中都需要它,因为它已经嵌入到字符串中。你问题的解决方案: 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): ...