Spring, abstract class and annotations

后端 未结 2 741
执笔经年
执笔经年 2020-12-09 16:10

I\'ve got a pretty simple abstract class

public abstract class AbstractServiceActions {

    @Autowired
    protected DatabaseModel dbModel;

    protected U         


        
2条回答
  •  甜味超标
    2020-12-09 16:20

    Your setup seems fine. The reason perhaps lies elsewhere. Maybe you are instantiating the class with new CreateDatabaseAction(), rather than letting spring do this.

提交回复
热议问题