@RestController @RequestMapping(value="/images") public class ImageFileRestController<E extends de.terrestris.shogun2.model.ImageFile,D extends de.terrestris.shogun2.dao.ImageFileDao<E>,S extends ImageFileService<E,D>> extends AbstractRestController<E,D,S>
objectMapperLOG, service| Modifier | Constructor and Description |
|---|---|
|
ImageFileRestController()
Default constructor, which calls the type-constructor
|
protected |
ImageFileRestController(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. |
delete, findAll, findById, save, updategetEntityClass, getServicepublic ImageFileRestController()
@Autowired @Qualifier(value="imageFileService") 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 de.terrestris.shogun2.model.ImageFile,D extends de.terrestris.shogun2.dao.ImageFileDao<E>,S extends ImageFileService<E,D>>service - the service to setCopyright © 2016 terrestris GmbH & Co. KG. All rights reserved.