Spring-Boot Camel JPA自动配置

时间:2016-05-30 13:16:25

标签: jpa spring-boot apache-camel

有很多关于JPA处理的驼峰和弹簧的例子,但我更喜欢spring boot自动配置数据源而不是XML或配置类。

但即使是

spring:

  datasource:

      url: jdbc:postgresql://postgres/fooBarBaz

      username: fooBarBaz

      password: fooBarBaz

  jpa:

    hibernate:

      ddl-auto: update

      naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy

设置

未提取数据源:

No qualifying bean of type [javax.sql.DataSource] found for dependency: expected at least 1 bean which qualifies as auto wire candidate for this dependency.

0 个答案:

没有答案