且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将JAXWS应用程序从Java 8迁移到Java 11

更新时间:2022-03-07 17:48:27

请确保有关sprint引导,但是为了使JAXWS在Java 11中正常工作,我使用了

Note sure about sprint boot, but to get JAXWS working in Java 11, I used

<profiles>
    <!-- add back the jaxws SOAP dependendies which were removed in JDK11 -->
    <profile>
        <id>jdk11</id>
        <activation>
            <jdk>[11,)</jdk>
        </activation>
        <!-- tested working with OpenJDK 11.0.8 -->
        <dependencies>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-rt</artifactId>
                <version>2.3.3</version>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>rt</artifactId>
                <version>2.3.3</version>
            </dependency>
        </dependencies>
    </profile>
</profiles>