微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

azure-spring-boot-starter-storage 升级版本io.netty netty-handler 的问题

如何解决azure-spring-boot-starter-storage 升级版本io.netty netty-handler 的问题

当我升级 azure-spring-boot-starter-storage 包中的 io.netty netty-handler 版本时,我收到 io.netty.handler.ssl.SslContxtBuilder 异常。

io.netty.netty-handler 版本 4.1.58.Final 有一个由 Sonatype 报告的安全策略威胁级别 6。

对我升级依赖版本有什么帮助吗?

<dependency>
    <groupId>com.azure.spring</groupId>
    <artifactId>azure-spring-boot-starter-storage</artifactId>
    <version>3.3.0</version>
    <!-- sonatype vulnerability -->
    <exclusions>
        <exclusion>
            <groupId>com.fasterxml.woodstox</groupId>
            <artifactId>woodstox-core</artifactId>
        </exclusion>
        <exclusion>
            <groupId>net.minidev</groupId>
            <artifactId>json-smart</artifactId>
        </exclusion>
        <exclusion>
            <groupId>io.netty</groupId>
            <artifactId>netty-handler</artifactId>
        </exclusion>
    </exclusions>
    <!-- end of sonatype vulnerability -->
</dependency>
<dependency>
    <groupId>com.fasterxml.woodstox</groupId>
    <artifactId>woodstox-core</artifactId>
    <version>6.2.4</version>
</dependency>
<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-handler</artifactId>
    <version>5.0.0.Alpha1</version>
    <exclusions>
        <exclusion>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-codec</artifactId>
    <version>4.1.60.Final</version>
</dependency>

下面是springboot应用程序启动时抛出的异常。知道怎么做吗?

2021-04-06 | 18:09:56.724 | parallel-1       | ERROR | reactor.core.scheduler.Schedulers        | Scheduler worker in group RMI Runtime Failed with an uncaught exception
java.lang.NoClassDefFoundError: io/netty/handler/ssl/SslContextBuilder

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。