I have created by own library(com.custom.mylib) which returns a string like below.
@Component
public class MyLibrary{
    @Value("${str.message}")
    private String message; //This val should come from app which is going to use this lib
    public String readMessage() {
        return message;
    }
I have create a project which is going to use above library. I have included the lib as pom dependency .But when I try to call library method from my app. I get the error below. How to resolve it?
   @Autowired
    private MyLibrary myLibrary;
Consider defining a bean of type 'com.custom.mylog.MyLibrary' in your configuration.
I also have below in application.properties file so that library can pick the value up
str.message=Hello world
 
    