How to enable webapp as distributable in grails 3+

我只是一个虾纸丫 提交于 2019-12-12 04:38:45

问题


How do i enable webapp to be distributable in grails 3+ since there is no web.xml?


回答1:


step 1: go to src\main\webapp\WEB-INF location. (if not, create the path)
step 2: create a folder WEB-INF
step 3: create a file web.xml and paste the following code

<?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.

Hope it will work



来源:https://stackoverflow.com/questions/45332967/how-to-enable-webapp-as-distributable-in-grails-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!