[英]How to enable webapp as distributable in grails 3+
由于没有web.xml,我如何才能在grails 3+中分发webapp?
step 1: go to src\\main\\webapp\\WEB-INF location. 步骤1:转到src \\ main \\ webapp \\ WEB-INF位置。 (if not, create the path)
(如果没有,请创建路径)
step 2: create a folder WEB-INF 步骤2:建立资料夹WEB-INF
step 3: create a file web.xml and paste the following code 步骤3:创建文件web.xml并粘贴以下代码
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
metadata-complete="true"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<distributable/>
</web-app>
step 4: generate war and deploy the war file on tomcat server. 步骤4:生成war,并将war文件部署在tomcat服务器上。
Hope it will work 希望它能工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.