我的Spring Boot应用程序在本地主机上工作得很好,但是当我在Centos上运行它时,它会给出一个错误。这是页面上显示的错误。
根本原因
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through con
我希望设置一些自定义数据源属性("app.datasource.alternate"),以及标准的DataSourceProperties ("spring.datasource")。
这两个数据源没有竞争(即app.datasource.alternate属性不是spring.datasource属性的替代品),应该在默认的应用程序属性中彼此共存。
我希望这样的东西能起作用:
@ConfigurationProperties("app.datasource.alternate")
public class AlternateDataSo
我正在创建Springboot应用程序,但将使用外部MongoDB而不是REST。我的应用程序属性文件非常简单:
application.properties
# Server
server.port=8081
我的全局应用程序文件也非常简单。我使用Parse初始化方法连接到外部托管的数据库:
@SpringBootApplication
@ComponentScan(basePackages = {"com.test", "it.ozimov.springboot"})
public class TmtApplication {
public sta
我的Spring微服务原型应用程序无法启动,出现以下消息: ***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]
我试图通过jar运行我的spring-boot应用程序,但得到了以下错误
16:35:58.033 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoc
我们有一个Spring Boot项目,它使用一个application.yml文件来为数据源、rabbitmq等配置spring上下文。
可以将YAML文件加载到karate-config.js中以获取baseUrl,这样就可以很好地工作。
function fn() {
var env = karate.env; // get system property 'karate.env'
karate.log('karate.env system property was:', env);
if (!env) {
env =
我使用的是 eclipse 版本: 2018-09 (4.9.0),我已经在eclipse中安装了Spring工具包(STS),用于构建Spring应用程序。
当我创建新的Spring项目时,会询问->,并尝试在不添加任何代码的情况下构建我的项目。生成失败,错误如下。
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-
我正在尝试使用h2数据库和微服务。但是当我运行应用程序时,它没有运行,它显示了错误。我有eureka服务器和一个产品微服务。在产品微服务中,我使用了h2database。它正在显示错误。 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception
is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
Cause
我正在开发spring引导Rest应用程序,在我的VS代码应用程序中运行时没有任何运行时错误,并且与postman一起工作,VS代码运行时输出。然而,当我通过VS代码导出JAR文件并尝试运行cmd时,该文件会弹出运行时错误,
区块引号
cmd中的块引号误差Msg
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConf
我正在开发Spring Boot + Batch非常基本的示例。Boot的版本是2.1.1.RELEASE。在本例中,我使用了schema-mysql.sql,并期望自动创建批处理元数据示例,但它会产生错误。
有什么快速的指示吗?使用MYSQL版本8.0.X
错误:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jobConfiguration': Unsatisfied dependency expressed through f
当我尝试在Eclipse中调试Spring boot with Gradle项目时,我得到了以下错误
Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration':
Unsatisfied dependency expressed through constructor parameter 0; nested exception
is org.springframework.beans.factory.BeanCreationE
我试图从我的Spring Boot应用程序连接到postgres数据库,但在这样做时遇到了问题。这是我看到的异常跟踪:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor par
我用IntelliJ构建了一个Jar文件,并通过cmd运行它,它抛出了这个错误:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation vi
正如问题的标题中所提到的,我正面临问题Cannot determine embedded database driver class for database type NONE。我构建的应用程序是在spring boot上运行的,当我在intellij中运行代码时,它工作得很好。
我已经回答了几个关于同一异常的问题,他们建议我需要在application.properties文件中添加spring.datasource属性。我已经有了,并且仍然面临着同样的问题。当我使用intellij的工件创建jar文件,然后通过以下命令运行它时,会出现此问题。java - jar myJar.jar
我的
我想问一下,在使用eclipse和spring时,是否需要指定到我的SQL文件的路径?给我同样的错误Cannot determine embedded database driver class for database type NONE。我相信所有的设置都是正确的,但问题是我从来没有告诉eclipse我的数据库在哪里?
我确实有一个属性文件,它声明如下:
spring.jpa.hibernate.ddl-auto=create-drop
spring.datasource.url=jdbc:mysql://localhost:3306/db_example
spring.datasourc
我正面临这个错误:
Error creating bean with name
'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with