package com.jean.hello;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.sql.*;
import java.util.concurrent.atomic.AtomicLong;
@Controller
public class GreetingController {
private static final String template = "Hello, %s!";
private final AtomicLong counter = new AtomicLong();
@RequestMapping("/")
public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) throws SQLException {
return new Greeting(counter.incrementAndGet(), "boom");
}
}