-
i'm new to micronaut, how can i achieve what spring achieves with @configuration. Here is the sample code. I tried @context and @singleton, but with no luck. @configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
More information is required, what didn't work for you with |
Beta Was this translation helpful? Give feedback.
-
Here is what i'm trying with @context . I just want to initialize system variables on the server start up. please help me on what i'm missing here. @context
} |
Beta Was this translation helpful? Give feedback.
-
sorry i meant creating bean like this @bean
} |
Beta Was this translation helpful? Give feedback.
sorry i meant creating bean like this
@bean
public Properties entityManagerFactory() {
}