Skip to content

Preserving Parameter Names are off by default in later java versions #13028

@pshotton

Description

@pshotton

Expected Behavior

Following the documentation on configuring a second datasource, then trying to use within a service.
In application.yml have a datasource block, followed by a datasources block with one datasource defined.
Trying to use the second datasource in a service, again following the docs.:
DataSource dataSource_lookup

Actual Behaviour

Datasource doesn't get injected, always comes back as null.

Steps To Reproduce

Create a grails app with bare config with two datasources as per documentation. Attempt to use second datasource.

Environment Information

Linux
JDK 17

Example Application

No response

Version

5.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions