-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issuetype: bugSomething isn't workingSomething isn't working
Description
I am not sure this is the correct repo or not but I am trying to make use MicronautBeanProcessor.
My problem is that Micronaut can not resolve Spring's properties.
For EachProperty part of DataJdbcConfiguration configuration:
@EachProperty(value = DataJdbcConfiguration.PREFIX, primary = "default")
public class DataJdbcConfiguration implements Named {
it triggers:
micronaut-spring/spring/src/main/java/io/micronaut/spring/beans/MicronautBeanProcessor.java
Lines 93 to 96 in b783d60
| @Override | |
| public <T> Optional<T> getProperty(String name, ArgumentConversionContext<T> conversionContext) { | |
| return Optional.ofNullable(environment.getProperty(name, conversionContext.getArgument().getType())); | |
| } |
However name's value is datasources. When it delegates to Spring it can not find this property. datasouces.default.url works.
I am little surprised why this is not hit before.
my prop is like this:
datasources:
default:
url: "jdbc:mysql://localhost:3306/cemo?useSSL=false"
username: "root"
password: ""
driverClassName: com.mysql.cj.jdbc.Driver
```
Any help?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
info: workaround availableA workaround is available for the issueA workaround is available for the issuetype: bugSomething isn't workingSomething isn't working