view spring-boot-playground/src/main/java/de/comline/spring/controller/CustomLogicController.java @ 20:452cfefb0e1e default tip

Einfache Spring Application, die ihre config aus dem Spring Cloud Config Server liest
author Dirk Olmes <dirk.olmes@codedo.de>
date Thu, 17 Sep 2020 17:25:15 +0200 (2020-09-17)
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();
	}
}