Skip to content

Tag: autowired

Java Spring Boot @Autowired values are null

When I try to print the variable that I have autowired, it prints “null” instead of the value I set it to, “Example.” I can’t quite figure out what I’m missing In my AppConfig class I have: In my other class, DAOMethods, that I want to autowire the variable in: Answer They …