formatting work
This commit is contained in:
@@ -8,14 +8,14 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class BaeldungController {
|
||||
|
||||
@RequestMapping(method={RequestMethod.GET},value={"/hello"})
|
||||
public String sayHello(HttpServletResponse response){
|
||||
|
||||
@RequestMapping(method = { RequestMethod.GET }, value = { "/hello" })
|
||||
public String sayHello(HttpServletResponse response) {
|
||||
return "hello";
|
||||
}
|
||||
|
||||
@RequestMapping(method={RequestMethod.POST},value={"/baeldung"})
|
||||
public String sayHelloPost(HttpServletResponse response){
|
||||
|
||||
@RequestMapping(method = { RequestMethod.POST }, value = { "/baeldung" })
|
||||
public String sayHelloPost(HttpServletResponse response) {
|
||||
return "hello";
|
||||
}
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.context.web.SpringBootServletInitializer;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SpringDemoApplication extends SpringBootServletInitializer{
|
||||
public class SpringDemoApplication extends SpringBootServletInitializer {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringDemoApplication.class, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringDemoApplication.class, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(SpringDemoApplication.class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class VersionController {
|
||||
|
||||
@RequestMapping(method={RequestMethod.GET},value={"/version"})
|
||||
public String getVersion(){
|
||||
return "1.0";
|
||||
}
|
||||
|
||||
@RequestMapping(method = { RequestMethod.GET }, value = { "/version" })
|
||||
public String getVersion() {
|
||||
return "1.0";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user