Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法将终结点解析为类型(@Endpoint in ws)-Eclipse编译错误_Java_Spring Boot_Soap_Ws - Fatal编程技术网

Java 无法将终结点解析为类型(@Endpoint in ws)-Eclipse编译错误

Java 无法将终结点解析为类型(@Endpoint in ws)-Eclipse编译错误,java,spring-boot,soap,ws,Java,Spring Boot,Soap,Ws,这是一些奇怪或可能是我错过了什么 我正在发布一个带有Spring引导应用程序的SOAP端点。下面是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"

这是一些奇怪或可能是我错过了什么

我正在发布一个带有Spring引导应用程序的SOAP端点。下面是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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> ..................
<parent>
    .............
</parent>
<groupId>com.gd</groupId>
<artifactId>sl</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>sl</name>
<description>Demo project for Spring Boot</description>
<properties>
    <java.version>1.8</java.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>wsdl4j</groupId>
        <artifactId>wsdl4j</artifactId>
    </dependency>
</dependencies> ..........plugin and other stuff.
这非常简单,但是eclipse显示了编译错误,并且没有将@Endpoint注释解析为

import org.springframework.ws.server.endpoint.annotation.Endpoint;


可能是什么问题,我缺少什么?

尝试添加此依赖项:

<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-core -->
<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
</dependency>

org.springframework.ws
SpringWS核心
查找所需依赖项的一种通常成功的方法是简单地搜索“maven


在本例中,我搜索了“maven
org.springframework.ws
”并找到了此依赖项。

您是否尝试更新您的maven项目?右键单击project->maven->并更新项目。很好,它工作了,但我不知道在哪里搜索以及搜索什么?现在编译错误出现在配置类的EnableWs上。我想我明白你的意思了。谢谢
<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-core -->
<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
</dependency>