我試圖創建一個Spring Boot可部署的war文件,然後將其部署到weblogic 12c。應用程序啓動失敗,出現異常:Spring Boot App部署到Weblogic 12c並且無法啓動
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
ERROR SpringApplication - Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphQLServletRegistrationBean' defined in class path resource
...
嵌套例外是:
java.lang.IllegalStateException: No *.graphqls files found on classpath. Please add a graphql schema to the classpath or add a SchemaParser bean to your application context.
事實上,上述文件*.graphqls
在戰爭中存在WEB-INF/classes/
文件夾下。如果戰爭文件解壓縮到本地磁盤並以分解格式重新部署應用程序,我們將不會看到此異常。
我錯過了什麼嗎?
謝謝。
春季啓動旨在獨立運行而不是在應用程序服務器內部 – jmhostalet
您是否按照指南在weblogic上部署spring-boot應用程序?您將需要一些額外的配置文件。 – Patrick
@jmhostalet你的陳述是不正確的。 Spring Boot應用程序也可以部署在App Servers中,我們正在JBoss部署Spring Boot應用程序兩年。 https://docs.spring.io/spring-boot/docs/current/reference/html/howto-traditional-deployment.html –