我正在使用 Azure 托管我的 Java Spring Boot 应用程序。我创建了一个试验来测试此解决方案,并按照本教程使用 Azure 部署(使用azure-webapp-maven-plugin和 命令)成功部署了我的应用程序mvn azure-webapp:deploy。
我的问题是,当我在应用程序内进行更改并且我想将它们应用到我的 Azure Web App 中时,但当我到达该页面时实际上没有任何更新,这是使用部署命令后的消息:
[INFO] Updating target Web App...
[INFO] Successfully updated Web App.
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to PATH\custom-dashboard\target\azure-webapp\custom-dashboard-98d69249-24aa-4729-8b7d-b7ff4b419823
[INFO] Trying to deploy artifact to custom-dashboard...
[INFO] Deploying the war file custom-dashboard.war...
[INFO] Successfully deployed the artifact to URL
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.637 s
[INFO] Finished …Run Code Online (Sandbox Code Playgroud) 我正在使用 Java Spring Boot 和 Vaadin 框架在 Tomcat 上部署 Web 应用程序。我正在使用 Spring Security 与 Okta 进行通信,但在部署战争时遇到问题。
这是我的 pom.xml :
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.dashboard</groupId>
<artifactId>test-custom-dashboard</artifactId>
<name>Custom dashboard</name>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<java.version>8</java.version>
<vaadin.version>14.5.3</vaadin.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.5</version>
</parent>
<repositories>
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->
<!-- Main Maven repository -->
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- Repository used by many …Run Code Online (Sandbox Code Playgroud)