I ve got a pretty summary.
public abstract class AbstractServiceActions {
@Autowired
protected DatabaseModel dbModel;
protected User user;
protected boolean complete;
protected String serviceResult;
public AbstractServiceActions(User user) {
this.user = user;
this.serviceResult = "";
}
public abstract String doAction();
}
现在可以看到,我试图使数据库Model自动化。 但是,在我的扩大类别中,我只找回德。
@Component
public class CreateDatabaseAction extends AbstractServiceActions {
....
}
问题:我试图在这里做一些不可能的事情?