Hi guys! I'm new to micronaut (an kotlin in genera...
# community-support
m
Hi guys! I'm new to micronaut (an kotlin in general): I'm trying to follow some guides, like this one which works fine to me https://guides.micronaut.io/latest/micronaut-data-hibernate-reactive-gradle-kotlin.html#using-mysql but I wanted to switch it to postgres. I've tried to modify the
application.yaml
but unfortunately it doesn't work as expected:
Copy code
micronaut:
  application:
    name: micronaut-guide
netty:
  default:
    allocator:
      max-order: 3
#tag::jpa[]
jpa:
  default:
    entity-scan:
      packages:
        - 'example.micronaut.domain' # <1>
    properties:
      hibernate:
        show-sql: true
        hbm2ddl:
          auto: update # <2>
        connection:
          db-type: postgres # <3>
    reactive: true
#end::jpa[]

test-resources:
  containers:
    postgres:
      image-name: postgres:latest
• the postgres docker is not raised up šŸ˜• totally ignored! But I've followed what the documentation says: https://micronaut-projects.github.io/micronaut-test-resources/snapshot/guide/#modules-databases-jdbc • the frameworks complains I'm now giving all the information needed:
Copy code
Message: Could not resolve placeholder ${auto.test.resources.jpa.default.properties.hibernate.connection.url}
mmm... does this only work for mysql? any help to move this is appreciated ā¤ļø
v
How is this question Gradle related?
m
in any way because I was on the wrong tab. 😐 epic mistake.
let me copy it and clean it up
thanks for asking btw