0

I am creating a standalone application using spring annotations. I have used the following link to refer Using Spring 3 autowire in a standalone Java application

My question is how do I access java arguments in my standalone application ?

Manas Saxena
  • 2,171
  • 6
  • 39
  • 58
  • 2
    Accepted answer shows how to use parameters. You instantiate Spring context, get beans you need and call their methods passing parameters you need. – Ivan Jul 10 '18 at 18:16
  • Your application will still accept arguments through the `main` method. You just pass them along... – Ivonet Jul 10 '18 at 18:20

0 Answers0