S - ServiceEntity - 实体public abstract class SuperSimpleController<S extends SuperService<Entity>,Entity> extends Object implements BaseController<Entity>
基类该类后,没有任何方法。 可以让业务Controller继承 SuperSimpleController 后,按需实现 *Controller 接口
| 限定符和类型 | 字段和说明 |
|---|---|
protected S |
baseService |
| 构造器和说明 |
|---|
SuperSimpleController() |
@Autowired protected S extends SuperService<Entity> baseService
public Class<Entity> getEntityClass()
BaseControllergetEntityClass 在接口中 BaseController<Entity>public SuperService<Entity> getBaseService()
BaseControllergetBaseService 在接口中 BaseController<Entity>Copyright © 2022. All rights reserved.