Why @Cacheable not working when calling cacheable method from method of non bean class
问题 I have suddently found that @Cacheable not worked when i call cacheable method from method inside not bean class. Please find below my code and help me what is issue or something i miss. EmployeeDAO.java @Component("employeeDAO") public class EmployeeDAO { private static EmployeeDAO staticEmployeeDAO; public static EmployeeDAO getInstance(){ return staticEmployeeDAO; } @PostConstruct void initStatic(){ staticEmployeeDAO = this; } @Cacheable(value = "employeeCache") public List<Employee>