@Controller @RequestMapping(value="/layer") public abstract class LayerController<E extends Layer,D extends LayerDao<E>,S extends LayerService<E,D>> extends AbstractWebController<E,D,S>
logger, service| Modifier | Constructor and Description |
|---|---|
|
LayerController()
Default constructor, which calls the type-constructor
|
protected |
LayerController(Class<E> entityClass)
Constructor that sets the concrete entity class for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setService(S service)
We have to use
Qualifier to define the correct service here. |
getEntityClass, getServicepublic LayerController()
@Autowired @Qualifier(value="layerService") public void setService(S service)
Qualifier to define the correct service here.
Otherwise, spring can not decide which service has to be autowired here
as there are multiple candidates.setService in class AbstractWebController<E extends Layer,D extends LayerDao<E>,S extends LayerService<E,D>>service - the service to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.