Mercurial > hg > SpringPlayground
view spring-boot-playground/src/main/java/de/comline/spring/controller/CustomLogicController.java @ 3:b4221c1389af
Nur die REST Endpunkte, die in der config explizit angezogen werden, sind nachher auch registriert
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 13 Aug 2020 14:31:40 +0200 |
parents | 60afb461bf6c |
children |
line wrap: on
line source
package de.comline.spring.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import de.comline.spring.service.CustomLogicService; @RestController public class CustomLogicController { @Autowired private CustomLogicService service; @RequestMapping("/svc") public String getCustomLogic() { return service.doit(); } }