summaryrefslogtreecommitdiff
path: root/spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello/HelloController.java
blob: 6a45ff11ebfce5b03a6a9885b360bb3e5a1a4fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.example.spring.hello;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {	
	@RequestMapping("/")
	@ResponseBody
	String home() {
		return "App is running! Access http://host:port/api/account/{accountNumber}";
	}
}