Commit 461f508c authored by ggerard's avatar ggerard

Fix syntax error and package import error.

parent 7c4c68ce
...@@ -125,24 +125,22 @@ calls `SpringApplication` and add `@EnableAutoConfiguration`, e.g: ...@@ -125,24 +125,22 @@ calls `SpringApplication` and add `@EnableAutoConfiguration`, e.g:
```java ```java
import org.springframework.boot.*; import org.springframework.boot.*;
import org.springframework.boot.autoconfiguration.*; import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*; import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@Controller @Controller
@EnableAutoConfiguration @EnableAutoConfiguration
public class SampleController { public class SampleController {
@RequestMapping("/") @RequestMapping("/")
@ResponseBody @ResponseBody
String home() { String home() {
return "Hello World!" return "Hello World!";
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
SpringApplication.run(SampleController.class, args); SpringApplication.run(SampleController.class, args);
} }
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment