Grails 3.1.4 app部署错误

时间:2016-06-06 05:03:23

标签: tomcat grails deployment

我试图向tomcat发布一个新的grails 3.1.4应用程序。我只是在创建应用程序时没有更改原始版本,除了在build.gradle中,我添加了两行:

dependencies {
    . . .
    provided "org.springframework.boot:spring-boot-starter-tomcat"
}

. . .

war.archiveName = 'og.war'

我正在使用JVM 1.7.0.79 - 64位

进行编译

它正在加载到服务器,并查看tomcat管理器,并且og应用程序正在运行,但是当我尝试在浏览器中打开应用程序时,我收到了404错误页面。

欢迎任何帮助

JP

1 个答案:

答案 0 :(得分:0)

现在正在使用,原始行是compile "org.springframework.boot:spring-boot-starter-tomcat"。 。 。我刚刚改为provided "org.springframework.boot:spring-boot-starter-tomcat"

愚蠢的我,当我应该更换原件时,我添加了新的依赖! 。 。 。我爱GRAILS

dependencies {
    . . .
    //compile "org.springframework.boot:spring-boot-starter-tomcat"
    provided "org.springframework.boot:spring-boot-starter-tomcat"
    . . .
}

. . .
war.archiveName = 'og.war'