报错一
- 错误信息:
Cannot determine embedded database driver class for database type NONE - 解决方案:启动类中加入注解:
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
报错二
- 错误信息:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘httpPutFormContentFilter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]: Factory method ‘httpPutFormContentFilter’ threw exception; nested exception is java.lang.VerifyError: Cannot inherit from final class - 解决方案:
更换Spring-Parent的版本。//更改之前
org.springframework.boot</groupId> spring-boot-dependencies</artifactId> 2.0.2.RELEASE</version> import</scope> pom</type> </dependency> // 更改之后 org.springframework.boot</groupId> spring-boot-dependencies</artifactId> 1.5.1.RELEASE</version> import</scope> pom</type> </dependency>
报错三
- 错误信息:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method ‘httpPutFormContentFilter’ threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 40 more
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z - 解决方案:
参考汇总
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!