Spring boot SpringFox Swagger在IBM Liberty 19.0.0.1上未按预期工作

Spring boot SpringFox Swagger在IBM Liberty 19.0.0.1上未按预期工作,spring-boot,swagger,swagger-ui,websphere-liberty,springfox,Spring Boot,Swagger,Swagger Ui,Websphere Liberty,Springfox,附在下面(Tomcat上的大摇大摆)(点击放大)-我的应用程序在Tomcat 9上的大摇大摆UI 已附加(Liberty上的大摇大摆)(单击以放大)-Liberty 19.0.0.1上我的应用程序的大摇大摆UI 可以看出,在Tomcat中,200响应主体被清晰地显示出来,“试用”选项的执行是完美的 但是,在Liberty中,没有显示200响应主体,并且“尝试”执行会在一个充满错误的响应主体中执行,如下所示(截断): My Liberty的server.xml如下所示: <?xml ve

附在下面(Tomcat上的大摇大摆)(点击放大)-我的应用程序在Tomcat 9上的大摇大摆UI

已附加(Liberty上的大摇大摆)(单击以放大)-Liberty 19.0.0.1上我的应用程序的大摇大摆UI

可以看出,在Tomcat中,200响应主体被清晰地显示出来,“试用”选项的执行是完美的

但是,在Liberty中,没有显示200响应主体,并且“尝试”执行会在一个充满错误的响应主体中执行,如下所示(截断):

My Liberty的server.xml如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">

    <!-- Enable features -->
    <featureManager>
        <feature>webProfile-8.0</feature>
        <feature>springBoot-2.0</feature>
        <feature>servlet-4.0</feature>
    </featureManager>

    <basicRegistry/>

    <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9090"
                  httpsPort="9443" />

    <!-- Automatically expand WAR files and EAR files -->
    <applicationManager autoExpand="true"/>

</server>

webProfile-8.0
springBoot-2.0
servlet-4.0
我的应用程序使用Java8、SpringBoot(2.1.3)和SpringIntegration、SpringSecurity、SpringREST文档、Springfox 3.0.0-SNAPSHOT和Log4j 2

有人能帮我指出Liberty无法显示招摇过市的响应或“试用”功能背后的根本原因吗?正如我所说,Tomcat9也在顺利运行

真诚地,
Bharath

此问题可能是因为在Liberty 19.0.0.1上部署了SpringBoot 2.1.3应用程序,该应用程序支持SpringBoot 1.5和2.0应用程序,但缺乏应用程序的功能。此后,该功能已添加到。请更新至Liberty 19.0.0.2并重试您的方案。如果更新没有解决问题,我已经开始进一步讨论和发现

我的公司不允许升级到Liberty 19.0.0.2。所以我在Liberty 19.0.0.1上降级到Spring Boot 2.0(这对我的项目很有好处)!
Error reported: 406

[ERROR   ] Error Page Exception:
                                                                                                               0-0

                                                                                                               Error Page Exception
                                                                                                               com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0295E
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">

    <!-- Enable features -->
    <featureManager>
        <feature>webProfile-8.0</feature>
        <feature>springBoot-2.0</feature>
        <feature>servlet-4.0</feature>
    </featureManager>

    <basicRegistry/>

    <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9090"
                  httpsPort="9443" />

    <!-- Automatically expand WAR files and EAR files -->
    <applicationManager autoExpand="true"/>

</server>