Bladex Boot 如何打包war,有没有详细的说明文档

Blade 未结 1 1259
3623774848
3623774848 剑圣 2020-11-15 11:45

打包war出现下面的错误提示,其他配置参考了论坛和网络上打war包的配置,还是出现如下错误,请问有没有war包打包的教程

 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoSuchMethodError: org.apache.tomcat.util.modeler.Registry.disableRegistry()V

2020-11-15 11:28:39.097  INFO 3783 --- [com-startStop-7] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-11-15 11:28:39.100 ERROR 3783 --- [com-startStop-7] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


An attempt was made to call a method that does not exist. The attempt was made from the following location:


    org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:177)


The following method did not exist:


    org.apache.tomcat.util.modeler.Registry.disableRegistry()V


The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:


    jar:file:/usr/local/tomcat/lib/tomcat-coyote.jar!/org/apache/tomcat/util/modeler/Registry.class


It was loaded from the following location:


    file:/usr/local/tomcat/lib/tomcat-coyote.jar




1条回答
  • 可以看下这个帖子。

    https://sns.bladex.cn/q-854.html

    0 讨论(0)
提交回复