gpt4 book ai didi

java - 更新Spring Boot以生成WAR文件而不是JAR文件

转载 作者:行者123 更新时间:2023-12-03 06:33:56 31 4
gpt4 key购买 nike

我用spring boot和gradle做了一个Web服务。我的项目正在使用gradle。
我必须制作动态Web项目并集成UI和Web服务。
如何更新我的Web服务,以便它将生成WAR文件而不是JAR文件?

最佳答案

请在此处查看这些指南:

Spring-boot Gradle Plugin War Packaging
Create Deployable War on Application Server
更具体地说:您将需要将build.gradle文件中的包装类型更改为“war”。

从第二个链接引用:

Note :- If you’re using Gradle, you need to modify build.gradle to apply the war plugin to the project:


 apply plugin: 'war'  // add this plugin to build.gradle.

关于java - 更新Spring Boot以生成WAR文件而不是JAR文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48298200/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com