I have Spring project with the following record. I need it autowired in my classes, but I can't run the Spring Boot app anymore.
The reason:
Parameter 0 of constructor in sk.eea.jira.rest.Issue required a bean of type 'java.lang.String' that could not be found.
Action:
Consider defining a bean of type 'java.lang.String' in your configuration.
Record class:
@Component
public record Issue(String assignee,
String created,
String reporter,
String resolution,
String status,
String summary,
String updated,
String key) {
}
How can I autowire such records in Spring?