Unable to read list of user defined class from application.yml file in a Java Spring Boot project

Finally, I found the solution.

I had not created setter methods inside the LogComponent class because of which the values were not getting assigned to the variables.

After adding the setters for all the fields, this issue has been resolved.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top