How to pass constructor parameter while using spring auto wiring?
问题 Our Project is using spring DI/IoC, so i am using autowiring to inject beans. The program needs to pass parameters to an object during it's instantiation. And the parameters are know at run time (not at compile time). How to achive this while using autowiring. Sample code is as below. Interface - IMessage package com.example.demo.services; public interface IMessage { String message(String name); } Implementations - SayHelloService package com.example.demo.services; import org.springframework