首页 > 解决方案 > spring boot(web 和 web 服务)看到 405 错误

问题描述

我有一个带有典型 GET 端点的简单 Spring Boot 应用程序。一切正常(使用spring-starter web和jpa)。我还需要使用基于肥皂的 Web 服务并包含

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web-services</artifactId>
</dependency>

并通过其中一项服务调用 Web 服务以获取生成的复杂类型对象、所有代码并准备好进行测试。

我不断收到 405 错误。没有一个端点可以工作

有人在这里遇到了同样的问题,但没有提到修复

https://uniqueexperiments.blogspot.com/2018/06/spring-boot-services-weirdness.html?showComment=1626656679249#c4321715417129565457

有人可以分享修复吗?谢谢,

标签: springspring-bootspring-mvcsoapjaxb2-maven-plugin

解决方案


推荐阅读