Служба запускается, но когда я делаю запрос через WildFly, он возвращает 404
build.gradle. кц
plugins {
kotlin("jvm") version "1.9.25"
kotlin("plugin.spring") version "1.9.25"
war
id("org.springframework.boot") version "3.3.4"
id("io.spring.dependency-management") version "1.1.6"
}
group = "br.org.demo"
version = "0.0.1-SNAPSHOT"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
val springVersion = "3.0.5"
extra["springCloudVersion"] = "2023.0.3"
configurations.all {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-logging")
exclude(group = "ch.qos.logback", module = "logback-classic")
exclude(group = "ch.qos.logback", module = "logback-core")
}
dependencies {
implementation("org.slf4j:slf4j-api:1.7.36") // Biblioteca SLF4J
implementation("org.slf4j:slf4j-simple:1.7.36") // Implementação simples do SLF4J
// https://mvnrepository.com/artifact/org. ... er-gateway
implementation("org.springframework.cloud:spring-cloud-starter-gateway:4.1.5")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("io.jsonwebtoken:jjwt-jackson:0.12.5")
implementation("io.jsonwebtoken:jjwt-impl:0.12.5")
implementation("io.jsonwebtoken:jjwt-api:0.12.5")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks.withType {
useJUnitPlatform()
}
tasks.getByName("jar") {
enabled = false
}
войдите в систему wildfly:
[img]https:// i.sstatic.net/JpkJ88v2.png[/img]
войдите в intellij

Корневой контекст установлен в "/".
Я удалил эти зависимости, чтобы Spring Boot работал в WildFly:
configurations.all {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-logging")
exclude(group = "ch.qos.logback", module = "logback-classic")
exclude(group = "ch.qos.logback", module = "logback-core")
}
У меня есть еще один микросервис в WildFly, который работает отлично; не работает только Spring Gateway.
standalone.xml
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-wildfly
Мобильная версия