Springboot服务器无法启动,企业应用程序

选择92:

您好,我是一名在读学生,并且完全是JEE菜鸟,我用mvn创建了一个多模块项目,当我从应用程序启动服务器时。java出现此错误,我不太确定如何解决它。我非常紧张,因此非常感谢您的帮助!抱歉,这是一个琐碎的问题。

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.4.RELEASE)

[INFO] Starting Application on DESKTOP-4KFU8LQ with PID 9036 (C:\Users\Kevin\Desktop\mockExam\frontend\target\classes started by Kevin in C:\Users\Kevin\Desktop\mockExam)
[INFO] No active profile set, falling back to default profiles: default
[INFO] Bootstrapping Spring Data repositories in DEFAULT mode.
[INFO] Finished Spring Data repository scanning in 19ms. Found 0 repository interfaces.
[INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$ce869900] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[INFO] Bean 'org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$Jsf2_3AutoConfiguration' of type [org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$Jsf2_3AutoConfiguration$$EnhancerBySpringCGLIB$$dea1e2b5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[INFO] Bean 'org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration' of type [org.joinfaces.autoconfigure.javaxfaces.JsfBeansAutoConfiguration$$EnhancerBySpringCGLIB$$92d067bb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[INFO] Tomcat initialized with port(s): 8080 (http)
[INFO] Initializing ProtocolHandler ["http-nio-8080"]
[INFO] Starting service [Tomcat]
[INFO] Starting Servlet engine: [Apache Tomcat/9.0.17]
[INFO] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO] Initializing Spring embedded WebApplicationContext
[INFO] Root WebApplicationContext: initialization completed in 1929 ms
[INFO] Resolving classes for com.sun.faces.config.FacesInitializer took 1.038s
[INFO] Initializing Mojarra 2.3.8 ( 20181116-0037 55af8b79ca53ec2df566f9c08a430259d30f9ba5) for context ''
[INFO] JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
[WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method 'flyway' threw exception; nested exception is java.lang.IllegalStateException: Cannot find migrations location in: [classpath:db/migration] (please add migrations or check your Flyway configuration)
[INFO] Stopping service [Tomcat]
[INFO] 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[ERROR] Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method 'flyway' threw exception; nested exception is java.lang.IllegalStateException: Cannot find migrations location in: [classpath:db/migration] (please add migrations or check your Flyway configuration)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:307)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
    at org.example.mockexam.Application.main(Application.java:13)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method 'flyway' threw exception; nested exception is java.lang.IllegalStateException: Cannot find migrations location in: [classpath:db/migration] (please add migrations or check your Flyway configuration)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
    ... 21 common frames omitted
Caused by: java.lang.IllegalStateException: Cannot find migrations location in: [classpath:db/migration] (please add migrations or check your Flyway configuration)
    at org.springframework.util.Assert.state(Assert.java:94)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration.checkLocationExists(FlywayAutoConfiguration.java:194)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration.flyway(FlywayAutoConfiguration.java:153)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration$$EnhancerBySpringCGLIB$$4e8466a0.CGLIB$flyway$0(<generated>)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration$$EnhancerBySpringCGLIB$$4e8466a0$$FastClassBySpringCGLIB$$92d06f5a.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration$$EnhancerBySpringCGLIB$$4e8466a0.flyway(<generated>)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    ... 22 common frames omitted

Process finished with exit code 1
Giorgi Tsiklauri:

在以下位置找不到迁移位置:[classpath:db / migration]

添加适当的迁移,或者如果它们在正确的位置,请检查其名称。

迁移的正确位置,即classpath:db/migration,是src\main\resources\db\migrations文件夹。

这里可以找到正确的命名逻辑

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

闪亮的服务器:应用程序无法启动

SAP 无法启动应用程序服务器

应用程序无法连接X服务器以启动

应用程序服务器无法启动

Tomcat服务器无法在STS中启动服务器和应用程序

无法启动应用程序服务器,Windows上存在服务器线程

尝试启动springboot应用程序时获取服务器时区值“未知”错误

React Native应用程序的“纱线启动”失败,并显示“无法启动服务器”

在服务器完成启动之前启动应用程序

无法在Eclipse中为Spring MVC应用程序启动Tomcat服务器

Eclipse Google插件无法启动Web应用程序的服务器

Erlang / Yaws:无法使用.conf文件在应用程序中启动Web服务器

无法在 RAD 中启动 websphere 应用程序服务器 8.5

闪亮的服务器:应用程序无法在 AWS 上启动

Django应用程序服务器挂起/无法在Docker Compose中启动

启动服务器会使我的应用程序挂起

在命令行上启动服务器与在应用程序内启动服务器

无法联系服务器,应用程序无法打开

企业GWT应用程序是否需要额外的客户端-服务器传输?

小型企业应用程序的轻型数据库服务器选项

输入验证是针对企业应用程序的客户端还是服务器端?

无法构建GCM演示服务器应用程序

无法从 Airflow 应用程序访问 Vault 服务器

无法从服务器 URL 打开 Web 应用程序

无法从 Java 服务器应用程序获得响应

应用程序无法连接到简单的服务器

Docker - React 应用程序无法从服务器获取

child_process.fork无法在打包的电子应用程序内部启动快递服务器

无法使用rackup和jRuby启动简单的Sinatra应用程序(Web服务器无响应)