可以将SpringBoot应用程序部署到Google Flex App Engine。
但是当我尝试部署到Google Standard App Engine时,会抛出异常:
[INFO] GCLOUD:2018-06-11 23:04:06.517:警告:oeja.ClassInheritanceHandler:qtp249515771-16: [INFO] GCLOUD:java.lang.NullPointerException [INFO] GCLOUD:at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) [INFO] GCLOUD:at org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:72) [INFO] GCLOUD:at org.eclipse.jetty.annotations.ClassInheritanceHandler.handle(ClassInheritanceHandler.java:58) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationParser $ MyClassVisitor.visit(AnnotationParser.java:476) [INFO] GCLOUD:at org.objectweb.asm.ClassReader.accept(ClassReader.java:650)[INFO] GCLOUD:at org.objectweb.asm.ClassReader.accept(ClassReader.java:525) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:978) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:958) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:902) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationConfiguration $ ParserTask.call(AnnotationConfiguration.java:163) [INFO] GCLOUD:at org.eclipse.jetty.annotations.AnnotationConfiguration $ 1.run(AnnotationConfiguration.java:546) [INFO] GCLOUD:at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [INFO] GCLOUD:at org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:589) [INFO] GCLOUD:在java.lang.Thread.run(Thread.java:748)[INFO] GCLOUD:2018-06-11 23:04:06.669:INFO:oeja.AnnotationConfiguration:main:扫描已过去 时间= 1717ms
我采取的例子来自这里。