summaryrefslogtreecommitdiff
path: root/spring-boot/04-bank-jpa-rest/src/main/java/com/example/spring/hello/HelloController.java
blob: bb287baa5fef6a333a2143cd1253153c8498c682 (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/account/{accountNumber}";
	}
}